C# 클래스 CSharpUtils.Templates.Runtime.TemplateCode

파일 보기 프로젝트 열기: soywiz/csharputils 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

메소드 상세

Autoescape() 보호된 메소드

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

CallBlock() 보호된 메소드

protected CallBlock ( String BlockName, TemplateContext Context ) : void
BlockName String
Context TemplateContext
리턴 void

CallBlockAsync() 보호된 메소드

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

CallParentBlock() 보호된 메소드

protected CallParentBlock ( String BlockName, TemplateContext Context ) : void
BlockName String
Context TemplateContext
리턴 void

Foreach() 보호된 메소드

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

GetFirstAscendingBlock() 보호된 메소드

protected GetFirstAscendingBlock ( String BlockName ) : RenderDelegate
BlockName String
리턴 RenderDelegate

Init() 공개 메소드

public Init ( ) : void
리턴 void

LocalRender() 보호된 추상적인 메소드

protected abstract LocalRender ( TemplateContext Context ) : void
Context TemplateContext
리턴 void

LocalRenderAsync() 보호된 추상적인 메소드

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

Render() 공개 메소드

public Render ( TemplateContext Context ) : void
Context TemplateContext
리턴 void

RenderAsync() 공개 메소드

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

RenderToString() 공개 메소드

public RenderToString ( TemplateScope Scope = null ) : String
Scope TemplateScope
리턴 String

SetAndRenderParentTemplate() 보호된 메소드

protected SetAndRenderParentTemplate ( String ParentTemplateFileName, TemplateContext Context ) : void
ParentTemplateFileName String
Context TemplateContext
리턴 void

SetBlock() 보호된 메소드

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

SetBlocks() 공개 메소드

public SetBlocks ( RenderDelegate>.Dictionary Blocks ) : void
Blocks RenderDelegate>.Dictionary
리턴 void

TemplateCode() 공개 메소드

public TemplateCode ( TemplateFactory TemplateFactory = null ) : System
TemplateFactory TemplateFactory
리턴 System