Share via


RazorTemplateEngine Class

Definition

Entry-point to the Razor Template Engine

public ref class RazorTemplateEngine
public class RazorTemplateEngine
type RazorTemplateEngine = class
Public Class RazorTemplateEngine
Inheritance
RazorTemplateEngine

Constructors

Name Description
RazorTemplateEngine(RazorEngineHost)

Constructs a new RazorTemplateEngine with the specified host

Fields

Name Description
DefaultClassName
DefaultNamespace

Properties

Name Description
Host

The RazorEngineHost which defines the environment in which the generated template code will live

Methods

Name Description
CreateChunkGenerator(String, String, String)
CreateCodeGenerator(CodeGeneratorContext)
CreateParser(String)
GenerateCode(ITextBuffer, Nullable<CancellationToken>)
GenerateCode(ITextBuffer, String, String, String, Nullable<CancellationToken>)

Parses the template specified by the TextBuffer, generates code for it, and returns the constructed code.

GenerateCode(ITextBuffer, String, String, String)
GenerateCode(ITextBuffer)
GenerateCode(Stream, String, String, String)

Parses the contents specified by the inputStream and returns the generated code.

GenerateCode(TextReader, Nullable<CancellationToken>)
GenerateCode(TextReader, String, String, String, Nullable<CancellationToken>)
GenerateCode(TextReader, String, String, String)
GenerateCode(TextReader)
GenerateCodeCore(ITextDocument, String, String, String, String, Nullable<CancellationToken>)
ParseTemplate(ITextBuffer, Nullable<CancellationToken>)

Parses the template specified by the TextBuffer and returns it's result

ParseTemplate(ITextBuffer)
ParseTemplate(TextReader, Nullable<CancellationToken>)
ParseTemplate(TextReader, String)
ParseTemplateCore(ITextDocument, String, Nullable<CancellationToken>)

Applies to