RazorEngine


LoadedTemplateSource

Defined in RazorEngine.dll.

A simple ITemplateSource implementation which represents an in-memory string.

Constructors

ConstructorDescription
new(template, templateFile)
Signature: (template:string * templateFile:string) -> unit

Initializes a new LoadedTemplateSource instance.

Instance members

Instance memberDescription
GetTemplateReader()
Signature: unit -> TextReader
Modifiers: abstract

Creates a new StringReader to read the in-memory stream.

Returns:

Template
Signature: string
Modifiers: abstract

The in-memory template sourcecode.

TemplateFile
Signature: string
Modifiers: abstract

The template file or null if none exists.

Fork me on GitHub