RazorEngine


ITemplate

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

Instance members

Instance memberDescription
Execute()
Signature: unit -> unit
Modifiers: abstract
Executes the compiled template.
InternalTemplateService()
Signature: unit -> IInternalTemplateService
Modifiers: abstract
Sets the internal template service.
RazorEngine()
Signature: unit -> IRazorEngineService
Modifiers: abstract
Sets the cached template service.
Run(context, writer)
Signature: (context:ExecuteContext * writer:TextWriter) -> unit
Modifiers: abstract
Runs the template and returns the result.
SetModel(model)
Signature: model:obj -> unit
Modifiers: abstract
Set the model of the template (if applicable).
TemplateService()
Signature: unit -> ITemplateService
Modifiers: abstract
OBSOLETE: Sets the template service.
Write(value)
Signature: value:obj -> unit
Modifiers: abstract
Writes the specified object to the result.
WriteLiteral(literal)
Signature: literal:string -> unit
Modifiers: abstract
Writes the specified string to the result.
Fork me on GitHub