This class is a caching directory based host wrapper around the RazorHost classes to provide directory based Razor template execution. Templates are compiled on the fly, and cached unless the templates on disk are changed.
Runs Razor Templates in a seperate AppDomain
System.MarshalByRefObject
Westwind.RazorHosting.RazorBaseHostContainer<TBaseTemplate>
Westwind.RazorHosting.RazorFolderHostContainer<TBaseTemplate>
public class RazorFolderHostContainer<TBaseTemplate> : RazorBaseHostContainer<TBaseTemplate>
Class Members
Member | Description | |
---|---|---|
Constructor |
||
RenderTemplate |
Renders a template to a TextWriter. Useful to write output into a stream or the Response object. Used for partial rendering. public string RenderTemplate(string relativePath, object model, TextWriter writer, bool isLayoutPage) |
|
RenderingOutputFile |
When rendering to a file render output to this file. |
|
TemplatePath |
The Path where templates live |
Requirements
Namespace: Westwind.RazorHostingAssembly: westwind.razorhosting.dll
© West Wind Technologies, 2018 • Updated: 06/07/18
Comment or report problem with topic