We have used three custom html helpers (@Html.PostLink, @Html.CategoryLink and @Helper.Tags) that generate anchor tags from the Post, Category and Tags. We could create a custom html helper both by declarative and through code. Code html helpers are better when the generated html is simple but in complex cases its better to go for declarative helpers. The post heading and category links are simple and so we have used code-based html-helpers but in case of tags its little complicated and so we have used a declarative one. |