What templating engines are available for ASP.NET MVC Framework?

China☆狼群 提交于 2019-11-26 16:48:00

问题


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?


回答1:


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

http://www.codeplex.com/MVCContrib




回答2:


StringTemplate is a decent alternative.

Here's the ViewEngine (with Source), and some tutorials.




回答3:


NDjango - django templates in .net




回答4:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!