C# Class RazorClientTemplates.RazorClientTemplateEngine

Mostra file Open project: jchadwick/RazorClientTemplates Class Usage Examples

Public Methods

Method Description
RenderClientTemplate ( string razorTemplate ) : string
RenderClientTemplate ( System.Web.Razor.Parser.SyntaxTree.Block document, TextWriter output ) : void
RenderClientTemplate ( TextReader razorTemplate, TextWriter output ) : void

Protected Methods

Method Description
ParseSyntaxTreeNode ( System.Web.Razor.Parser.SyntaxTree.SyntaxTreeNode node, TextWriter output ) : void
TranslateCodeBlock ( string code ) : string
VisitBlock ( System.Web.Razor.Parser.SyntaxTree.Block block, TextWriter output ) : bool
VisitCodeSpan ( System.Web.Razor.Parser.SyntaxTree.CodeSpan code, TextWriter output ) : bool
VisitMarkupSpan ( System.Web.Razor.Parser.SyntaxTree.MarkupSpan markup, TextWriter output ) : bool

Method Details

ParseSyntaxTreeNode() protected method

protected ParseSyntaxTreeNode ( System.Web.Razor.Parser.SyntaxTree.SyntaxTreeNode node, TextWriter output ) : void
node System.Web.Razor.Parser.SyntaxTree.SyntaxTreeNode
output System.IO.TextWriter
return void

RenderClientTemplate() public method

public RenderClientTemplate ( string razorTemplate ) : string
razorTemplate string
return string

RenderClientTemplate() public method

public RenderClientTemplate ( System.Web.Razor.Parser.SyntaxTree.Block document, TextWriter output ) : void
document System.Web.Razor.Parser.SyntaxTree.Block
output System.IO.TextWriter
return void

RenderClientTemplate() public method

public RenderClientTemplate ( TextReader razorTemplate, TextWriter output ) : void
razorTemplate TextReader
output System.IO.TextWriter
return void

TranslateCodeBlock() protected method

protected TranslateCodeBlock ( string code ) : string
code string
return string

VisitBlock() protected method

protected VisitBlock ( System.Web.Razor.Parser.SyntaxTree.Block block, TextWriter output ) : bool
block System.Web.Razor.Parser.SyntaxTree.Block
output System.IO.TextWriter
return bool

VisitCodeSpan() protected method

protected VisitCodeSpan ( System.Web.Razor.Parser.SyntaxTree.CodeSpan code, TextWriter output ) : bool
code System.Web.Razor.Parser.SyntaxTree.CodeSpan
output System.IO.TextWriter
return bool

VisitMarkupSpan() protected method

protected VisitMarkupSpan ( System.Web.Razor.Parser.SyntaxTree.MarkupSpan markup, TextWriter output ) : bool
markup System.Web.Razor.Parser.SyntaxTree.MarkupSpan
output System.IO.TextWriter
return bool