开发者

Creating an MVC 3 Razor - Display Template Library for sharing across multiple projects/solutions

开发者 https://www.devze.com 2023-03-29 05:06 出处:网络
Is it possible to put Display Templates in a separate VS project that can then be referenced by my web site projects. I like using display templates but I don\'t like the idea of re-use via copy and p

Is it possible to put Display Templates in a separate VS project that can then be referenced by my web site projects. I like using display templates but I don't like the idea of re-use via copy and paste as this soon becomes 开发者_如何学Ca headache.


You may take a look at the following blog post which illustrates a technique allowing you to embed Razor views into separate assemblies and reusing them.

0

精彩评论

暂无评论...
验证码 换一张
取 消