DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
224 stars 79 forks source link

Accept MvcHtmlString as parameter for methods receiving string (eg: .HelpText( ... ) ) #108

Closed Jak3b0 closed 10 years ago

Jak3b0 commented 10 years ago

I don't know if this could be useful to anyone else but me but I find myself wanting to pass MvcHtmlString to methods of BMVC (eg: HelpText()).

The MvcHtmlStrings comes from the Html helper method to extract model metadata.

This could save me a lot of .ToString() in my code. :)

DmitryEfimenko commented 10 years ago

Yeah, this is a good suggestion. I've already added overloads to a bunch of methods to take IHtmlString, I'll do the same for HelpText in the next release.

Jak3b0 commented 10 years ago

Cool, thanks!

DmitryEfimenko commented 10 years ago

This is in the latest nuget