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 -> unit
Modifiers: abstract

Sets the internal template service.

Razor()
Signature: unit -> unit
Modifiers: abstract

Sets the cached template service.

RazorEngine()
Signature: unit -> unit
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.

Returns: The merged result of the template.

SetData(model, viewbag)
Signature: (model:obj * viewbag:DynamicViewBag) -> unit
Modifiers: abstract

Set the model of the template (if applicable).

TemplateService()
Signature: unit -> unit
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