This project is read-only.


This .net project came out of a response I gave to the following question on stackoverflow:

I wanted a fluent way of outputting html content with the dual goals of

  • not doing lots of string concatenation 
  • enabling a syntax structure that aligns with the html structure being output.

The fluency is achieved by creating extension methods for the System.Web.UI.HtmlTextWriter for each html tag, and in each method returning an instance of the writer (thus enabling method chaining).

Examine the Program.cs class in the FluentHtmlWriterClient console application for an example of how to use the FluentHtmlWriter.

Last edited Jun 18, 2012 at 2:32 PM by tcouc, version 4