.net MVC3 是否会为替代视图引擎带来更轻松的集成?

发布于 2024-10-03 00:43:08 字数 168 浏览 0 评论 0原文

您可能知道,.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

合久必婚 2024-10-10 00:43:08

我最感兴趣的是工具集成(语法突出显示、代码完成等)。

这与 MVC 无关。它与编写 Visual Studio 插件有关,这些插件可以识别正在打开的文件扩展名并添加语法突出显示和智能感知。因此,MVC 3 在对第三方视图引擎的工具支持方面不会带来任何新内容(当然,除了 Microsoft 构建的 Razor 视图引擎的语法突出显示和 Intellisense 之外)。

What I'm mostly interested in is tooling integration (syntax highlighting, code completion etc).

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).

成熟的代价 2024-10-10 00:43:08

正如 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文