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 a headache.
Asked
Active
Viewed 680 times
1 Answers
3
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.

Darin Dimitrov
- 1,023,142
- 271
- 3,287
- 2,928
-
I'd also suggest looking at http://razorgenerator.codeplex.com/ - this is more sophisticated, easier to install from Nuget and works very well. – Quango Feb 17 '12 at 13:19