Announcing HtmlTags 1.0


I’m pleased to announce the release of version 1.0 of the HtmlTags library. You can add it to your projects today using nuget.

> Install-Package HtmlTags

HtmlTags provides a simple object model for generating HTML from .NET code. The main premise is that you are much better off building a model of the HTML elements you want to produce (and serializing it to a string when needed), rather than building a string directly. It was created by Jeremy Miller as part of FubuMVC to support the awesome conventional HTML features I’ve talked about before. I then pulled it out of FubuMVC and tightened up the API for a more general release. I strongly believe that regardless of which .NET web framework you are using, if you are generating snippets of HTML (think ASP.NET MVC HtmlHelper extensions), you should use HtmlTags.

Check out the readme for an overview and example usage of HtmlTags.

Big thanks to Sharon Cichelli for helping me put the final touches on the codebase for the 1.0 release, and to Robert Greyling for the sharp new logo!

Code samples from my ADNUG talk – Coding with Conventions