开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜