C# Class CSharpUtils.Templates.Runtime.TemplateCode

Afficher le fichier Open project: soywiz/csharputils Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

protected Autoescape ( TemplateContext Context, dynamic Expression, EmptyDelegate Block ) : void
Context TemplateContext
Expression dynamic
Block EmptyDelegate
Résultat void

CallBlock() protected méthode

protected CallBlock ( String BlockName, TemplateContext Context ) : void
BlockName String
Context TemplateContext
Résultat void

CallBlockAsync() protected méthode

protected CallBlockAsync ( String BlockName, TemplateContext Context ) : System.Threading.Tasks.Task
BlockName String
Context TemplateContext
Résultat System.Threading.Tasks.Task

CallParentBlock() protected méthode

protected CallParentBlock ( String BlockName, TemplateContext Context ) : void
BlockName String
Context TemplateContext
Résultat void

Foreach() protected méthode

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

GetFirstAscendingBlock() protected méthode

protected GetFirstAscendingBlock ( String BlockName ) : RenderDelegate
BlockName String
Résultat RenderDelegate

Init() public méthode

public Init ( ) : void
Résultat void

LocalRender() protected abstract méthode

protected abstract LocalRender ( TemplateContext Context ) : void
Context TemplateContext
Résultat void

LocalRenderAsync() protected abstract méthode

protected abstract LocalRenderAsync ( TemplateContext Context ) : System.Threading.Tasks.Task
Context TemplateContext
Résultat System.Threading.Tasks.Task

Render() public méthode

public Render ( TemplateContext Context ) : void
Context TemplateContext
Résultat void

RenderAsync() public méthode

public RenderAsync ( TemplateContext Context ) : System.Threading.Tasks.Task
Context TemplateContext
Résultat System.Threading.Tasks.Task

RenderToString() public méthode

public RenderToString ( TemplateScope Scope = null ) : String
Scope TemplateScope
Résultat String

SetAndRenderParentTemplate() protected méthode

protected SetAndRenderParentTemplate ( String ParentTemplateFileName, TemplateContext Context ) : void
ParentTemplateFileName String
Context TemplateContext
Résultat void

SetBlock() protected méthode

protected SetBlock ( RenderDelegate>.Dictionary Blocks, String BlockName, RenderDelegate Callback ) : void
Blocks RenderDelegate>.Dictionary
BlockName String
Callback RenderDelegate
Résultat void

SetBlocks() public méthode

public SetBlocks ( RenderDelegate>.Dictionary Blocks ) : void
Blocks RenderDelegate>.Dictionary
Résultat void

TemplateCode() public méthode

public TemplateCode ( TemplateFactory TemplateFactory = null ) : System
TemplateFactory TemplateFactory
Résultat System