WrapperTemplateManager
Defined in RazorEngine.dll.
This is a simple wrapper around an ITemplateResolver to provide an ITemplateManager service.
Constructors
Constructor | Description |
new(resolver)
Signature: resolver:ITemplateResolver -> unit
|
Initialises a new instance of DelegateTemplateResolver. |
Instance members
Instance member | Description |
AddDynamic(key, source)
Signature: (key:ITemplateKey * source:ITemplateSource) -> unit
Modifiers: abstract |
Adds a template dynamically. |
GetKey(name, templateType, context)
Signature: (name:string * templateType:ResolveType * context:ITemplateKey) -> ITemplateKey
Modifiers: abstract |
Gets the key for a template. See ITemplateManager.GetKey. Returns: |
Resolve(key)
Signature: key:ITemplateKey -> ITemplateSource
Modifiers: abstract |
Resolves the template content with the specified key. Returns: The template content. |