I want to generate a static HTML page by RAZOR, basically by using includes of partial sub pages.
- I have tried T4 as well and do look for an alternative: see here and here
- This answer says it is possible – but no concrete example
- I have installed Razor generator because I thought this is the way to go, but I do not get how to generate static HTML with this.
Best would be a complete extension which behaves like the T4 concept, but allows me to use the RAZOR syntax and HTML formatting (the formatting issue is basically the reasons why I am not using T4).
If you are trying to take a Razor view and compile it and generate the HTML then you can use something like this.
Or outside of ControllerContext http://razorengine.codeplex.com/