[英]Is it possible to use different view engines for different views in the *same* ASP.NET MVC website?
I'd like to experiment with NHaml . 我想尝试NHaml 。 Can I use the NHaml view engine for a few of my views, without having to convert the entire application (or create a new prototype application)? 是否可以将NHaml视图引擎用于我的一些视图,而不必转换整个应用程序(或创建新的原型应用程序)?
Yes: 是:
http://haacked.com/archive/2008/11/16/composing-multiple-view-engines.aspx http://haacked.com/archive/2008/11/16/composed-multiple-view-engines.aspx
and 和
How to use multiple view engines in ASP.NET MVC application 如何在ASP.NET MVC应用程序中使用多个视图引擎
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.