.net MVC3 是否会为替代视图引擎带来更轻松的集成?
您可能知道,.MVC3 带来了一个名为 Razor 的替代视图引擎。
据我了解,为了使这种可能成为可能,微软付出了更多的努力来使替代视图引擎的集成变得更容易。
这会对其他视图引擎(nHaml、Spark ...)产生任何影响吗?
我最感兴趣的是工具集成(语法突出显示、代码完成 ETC)。
As you might know .MVC3 brings an alternative view engine named Razor.
As I understand in order to make this possible MS has put more effort in making integration of alternative view engines easier.
Will this have any impact for other view engines (nHaml, Spark ...)?
What I'm mostly interested in is tooling integration (syntax highlighting, code completion
etc).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这与 MVC 无关。它与编写 Visual Studio 插件有关,这些插件可以识别正在打开的文件扩展名并添加语法突出显示和智能感知。因此,MVC 3 在对第三方视图引擎的工具支持方面不会带来任何新内容(当然,除了 Microsoft 构建的 Razor 视图引擎的语法突出显示和 Intellisense 之外)。
That has nothing to do with MVC. It's related to writing Visual Studio plugins that recognize the file extension being opened and add syntax highlighting and Intellisense. So MVC 3 won't bring anything new in terms of tooling support for third party view engines (other than of course the syntax highlighting and the Intellisense for the Razor view engine built by Microsoft).
正如 Darin 指出的那样,MVC 3 不会为第 3 方视图引擎带来智能感知(最终他们有责任编写必要的 VS 插件)
但是,MVC 3 确实使将第 3 方视图引擎模板插入“添加新项目”和“添加视图”变得更容易对话框。
As Darin pointed out MVC 3 will not bring intellisense for 3rd party view engines (ultimately it's their responsibility to write the necessary VS plugins)
However, MVC 3 does make it easier to plug 3rd party view engine templates into the Add New Project and Add View dialogs.