I was reading some posts on Coding Horror blog about working with the horrors of tag soup. It seems like the only way to simplify html generation is to use a templating engine.
Do you know any templating engine for ASP.NET MVC framework?
there are many view engines for asp.net mvc framework:
- The Razor view engine is built in to ASP.NET MVC
- Web forms view engine(default)
- Spark view engine
- Nhamle view engine
- … all community contributions on the asp.net mvc framework including view engines can be found on
StringTemplate is a decent alternative.
Here's the ViewEngine (with Source), and some tutorials.
NDjango - django templates in .net
ArjanZuidhof
think your question is answered perfectly in an older topic here: JQuery's $ is in conflict with that of StringTemplate.Net in ASP.Net MVC
来源:https://stackoverflow.com/questions/523644/what-templating-engines-are-available-for-asp-net-mvc-framework