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 -> bool
Determines whether this template has a dynamic model.
Include(cacheName, model, modelType)
Signature: (cacheName:string * model:obj * modelType:Type) -> TemplateWriter
Modifiers: abstract
Includes the template with the specified name.
Model()
Signature: unit -> 'T
Modifiers: abstract
Gets or sets the model.
SetModel(model)
Signature: model:obj -> unit
Modifiers: abstract
Set the model.
Fork me on GitHub