Deeptechtons
Deeptechtons

Reputation: 11125

HTML Templating options in C# for generating markup from data

I am currently on the look for Templating library that can generate HTML from Models in C# 2.0( for use with ASP.NET 2.0) since the built in datacontrols do not allow hierarchy more than 3 - 4 levels). I found Nustache ( a port of Mustache for use with .NET ) but am at loss when searching for other options available libraries too. Basically this is all i want to do throw a Model a tasklist, a todo list etc at the template and the engine renders HTML I just have to stick it up using something like literalTemplateMarkup.Text = theTemplateMarkup;

Upvotes: 1

Views: 528

Answers (1)

Robert Levy
Robert Levy

Reputation: 29073

I would use T4 for this. http://msdn.microsoft.com/en-us/library/bb126445(v=vs.110).aspx

Upvotes: 1

Related Questions