RazorEngine


TemplateBase<'T>

Defined in RazorEngine.dll.

Provides a base implementation of a template with a model.

Constructors

ConstructorDescription
new()
Signature: unit -> unit

Initialises a new instance of TemplateBase`1.

Instance members

Instance memberDescription
HasDynamicModel()
Signature: unit -> unit

Determines whether this template has a dynamic model.

Include(name, model, modelType)
Signature: (name:string * model:obj * modelType:Type) -> TemplateWriter
Modifiers: abstract

Includes the template with the specified name.

Returns: The template writer helper.

Include(name, model)
Signature: (name:string * model:obj) -> TemplateWriter
Modifiers: abstract

Includes the template with the specified name.

Returns: The template writer helper.

Include(name)
Signature: name:string -> TemplateWriter
Modifiers: abstract

Includes the template with the specified name, uses the current model and model-type.

Returns: The template writer helper.

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

Gets or sets the model.

SetModel(model)
Signature: model:obj -> unit
Modifiers: abstract

Set the model.

Fork me on GitHub