RazorEngine


ITemplateManager

Defined in RazorEngine.dll.
Defines the required contract for implementing a template-manager.

Instance members

Instance memberDescription
AddDynamic(key, source)
Signature: (key:ITemplateKey * source:ITemplateSource) -> unit
Modifiers: abstract
Adds a template dynamically to the current manager.
GetKey(name, resolveType, context)
Signature: (name:string * resolveType:ResolveType * context:ITemplateKey) -> ITemplateKey
Modifiers: abstract
Get the key of a template. This method has to be implemented so that the manager can control the ITemplateKey implementation. This way the cache api can rely on the unique string given by ITemplateKey.GetUniqueKeyString.
Resolve(key)
Signature: key:ITemplateKey -> ITemplateSource
Modifiers: abstract
Resolves the template with the specified key.
Fork me on GitHub