Is there a way to insert an icon tag using this?

Feb 4, 2014 at 7:45 PM
What I want to do is accomplish the following. This comes from a Bootstrap theme I bought, and I'm not sure how to wire it up when using MVC5.
<a class="btn-u btn-u-small" href="blog_item.html"><i class="icon-location-arrow"></i> Read More</a>
Feb 5, 2014 at 12:56 PM
Edited Feb 5, 2014 at 1:51 PM
HTML helpers are most helpful when they "help." In many cases (like this one) they might not really help all that much.

Eventhough I wrote Build.Mvc, and I could clearly write a helper to output this markup... I wouldn't actually use it for this purpose. It's just actually easier write out the HTML like this:
<a class="btn btn-info btn-sm" href="@Url.Action("Blog")"><i class="fa fa-arrow-right"></i> Read More</a>
(this is Bootstrap 3 w/ Font Awesome markup)

That being said, there is a Html.Btn helper in the Build.Mvc.TwitterBootstrap package that you may find useful for some scenarios.
Feb 5, 2014 at 7:47 PM
Thanks for the reply. I went ahead and wrote a custom HtmlHelper to do this, if only for the practice. Your suggestion would certainly do the trick as well.