你跟ASP.NET MVC使用的是什么浏览引擎? [英] What View Engine are you using with ASP.NET MVC?
问题描述
我知道你可以使用几种不同的视图引擎的ASP.NET MVC:
I know you can use several different view engines with ASP.NET MVC:
- ASPX,显然
- NVelocity
- 抄网
- NHaml
- 等...
默认的ASPX视图引擎似乎使最有意义的我,从ASP.NET的WebForms背景的。
The default ASPX view engine seems to make the most sense to me, coming from an ASP.NET WebForms background.
不过,我希望得到各的优点和缺点的想法,看看大多数人使用的是什么。
But, I wanted to get an idea of the pros and cons of each and see what most people are using.
这也计算器使用?
推荐答案
我使用星火。它拥有HTML和code之间很好的流动。斯科特Hanselman的也做了一个<一个href=\"http://www.hanselman.com/blog/TheWeeklySource$c$c30SparkAndNHamlCrazyASPNETMVCViewEngines.aspx\"相对=nofollow>帖子上与他每周源$ C $ C审查的职位。我真的挖了很多。其中一个主要的特点就是你的意见 pre-编译。
I use Spark. It has nice flow between HTML and code. Scott Hanselman also did a post on it with his weekly source code review posts. I am really digging it a lot. One of the major features is pre-compilation of your views.
这篇关于你跟ASP.NET MVC使用的是什么浏览引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!