Embedding pre-compiled Razor views in your dll

added by alley
11/22/2010 3:27:06 PM

6 Kicks, 777 Views

Inspired by David Ebbo’s blog post ‘Turn your Razor helpers into reusable libraries’ I wanted to be able to embed compiled Razor views in a dll. This would allow for easy distribution of asp.net mvc ‘modules’ that have their default views embedded, but allowing you to place files in your ‘views’ folder to override those default views