Post date created - TagHelper
See original GitHub issueWe need a TagHelper that makes it easier to insert the created date of a post in the format selected. The TagHelper would be exclusively for the _PostPartial.cshtml and would be in the following format:
<postcreated post=@Model>MMMM dd, yyyy</postcreated>
Which would produce the following output (based on MMMM dd, yyyy):
June 18, 2017
TagHelpers should be created in the DasBlog.Web.UI project under the TagHelpers folder, I have a blog post on authoring TagHelpers here. Find out about why we use TagHelpers here, and specific steps on authoring TagHelpers can be found here.
Please note that these tasks are for code newbies who are looking to make contributions to supportive open source project using ASP.NET Core MVC. Please feel free to reach out to me on twitter and I will be happy to help walk you through this.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
@lalitkale For now lets go with the UI project will try to create a baseline of helpers. I can see us needing to create a framework to allow 3rd parties to produce variations or brand new TagHelpers and that framework would probably exist elsewhere.
I am going to close this issue, and create separate issues for missing test cases.
Many thanks for your contribution!