C# Class CSharpUtils.Templates.Runtime.TemplateCode

Exibir arquivo Open project: soywiz/csharputils Class Usage Examples

Public Methods

Method Description
Init ( ) : void
Render ( TemplateContext Context ) : void
RenderAsync ( TemplateContext Context ) : System.Threading.Tasks.Task
RenderToString ( TemplateScope Scope = null ) : String
SetBlocks ( RenderDelegate>.Dictionary Blocks ) : void
TemplateCode ( TemplateFactory TemplateFactory = null ) : System

Protected Methods

Method Description
Autoescape ( TemplateContext Context, dynamic Expression, EmptyDelegate Block ) : void
CallBlock ( String BlockName, TemplateContext Context ) : void
CallBlockAsync ( String BlockName, TemplateContext Context ) : System.Threading.Tasks.Task
CallParentBlock ( String BlockName, TemplateContext Context ) : void
Foreach ( TemplateContext Context, String VarName, dynamic Expression, EmptyDelegate Iteration, EmptyDelegate Else = null ) : void
GetFirstAscendingBlock ( String BlockName ) : RenderDelegate
LocalRender ( TemplateContext Context ) : void
LocalRenderAsync ( TemplateContext Context ) : System.Threading.Tasks.Task
SetAndRenderParentTemplate ( String ParentTemplateFileName, TemplateContext Context ) : void
SetBlock ( RenderDelegate>.Dictionary Blocks, String BlockName, RenderDelegate Callback ) : void

Method Details

Autoescape() protected method

protected Autoescape ( TemplateContext Context, dynamic Expression, EmptyDelegate Block ) : void
Context TemplateContext
Expression dynamic
Block EmptyDelegate
return void

CallBlock() protected method

protected CallBlock ( String BlockName, TemplateContext Context ) : void
BlockName String
Context TemplateContext
return void

CallBlockAsync() protected method

protected CallBlockAsync ( String BlockName, TemplateContext Context ) : System.Threading.Tasks.Task
BlockName String
Context TemplateContext
return System.Threading.Tasks.Task

CallParentBlock() protected method

protected CallParentBlock ( String BlockName, TemplateContext Context ) : void
BlockName String
Context TemplateContext
return void

Foreach() protected method

protected Foreach ( TemplateContext Context, String VarName, dynamic Expression, EmptyDelegate Iteration, EmptyDelegate Else = null ) : void
Context TemplateContext
VarName String
Expression dynamic
Iteration EmptyDelegate
Else EmptyDelegate
return void

GetFirstAscendingBlock() protected method

protected GetFirstAscendingBlock ( String BlockName ) : RenderDelegate
BlockName String
return RenderDelegate

Init() public method

public Init ( ) : void
return void

LocalRender() protected abstract method

protected abstract LocalRender ( TemplateContext Context ) : void
Context TemplateContext
return void

LocalRenderAsync() protected abstract method

protected abstract LocalRenderAsync ( TemplateContext Context ) : System.Threading.Tasks.Task
Context TemplateContext
return System.Threading.Tasks.Task

Render() public method

public Render ( TemplateContext Context ) : void
Context TemplateContext
return void

RenderAsync() public method

public RenderAsync ( TemplateContext Context ) : System.Threading.Tasks.Task
Context TemplateContext
return System.Threading.Tasks.Task

RenderToString() public method

public RenderToString ( TemplateScope Scope = null ) : String
Scope TemplateScope
return String

SetAndRenderParentTemplate() protected method

protected SetAndRenderParentTemplate ( String ParentTemplateFileName, TemplateContext Context ) : void
ParentTemplateFileName String
Context TemplateContext
return void

SetBlock() protected method

protected SetBlock ( RenderDelegate>.Dictionary Blocks, String BlockName, RenderDelegate Callback ) : void
Blocks RenderDelegate>.Dictionary
BlockName String
Callback RenderDelegate
return void

SetBlocks() public method

public SetBlocks ( RenderDelegate>.Dictionary Blocks ) : void
Blocks RenderDelegate>.Dictionary
return void

TemplateCode() public method

public TemplateCode ( TemplateFactory TemplateFactory = null ) : System
TemplateFactory TemplateFactory
return System