C# Класс CSharpUtils.Templates.Runtime.TemplateCode

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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