I am currently using the razor engine in a class library to render HTML for emails for an application. This is working fine but as the number of email templates have gone up I would now like to implement master pages as well. Is it possible to do this? When I tried it, it gives me a null reference exception when parsing the view
Asked
Active
Viewed 114 times
2
-
2wen project = web project? – DavidG Oct 20 '14 at 12:26
-
Yes it does. Sorry I have fixed that typo – Richard Mannion Oct 20 '14 at 14:02
-
Are you using the RazorEngine library? – Samuele Oct 20 '14 at 14:15
-
Yes I am using the RazorEngine library that I added to my project through NuGet – Richard Mannion Oct 20 '14 at 19:41