C# Class CSharpUtils.Templates.Runtime.TemplateContext

Show file Open project: soywiz/csharputils Class Usage Examples

Public Properties

Property Type Description
Autoescape bool
Filters Dictionary>
Output System.IO.TextWriter
Parameters dynamic
RenderingTemplate TemplateCode
Scope TemplateScope
TemplateFactory TemplateFactory

Public Methods

Method Description
AddFilter ( String FilterName, Type Type, String FunctionName ) : void
AddFilterLibrary ( Type FilterLibraryType ) : void
AutoFilter ( dynamic Value ) : dynamic
CallFilter ( string FilterName ) : dynamic
GetVar ( String Name ) : dynamic
NewScope ( System.Action Action ) : void
OutputWriteAutoFiltered ( dynamic Value ) : void
OutputWriteAutoFilteredAsync ( dynamic Value ) : Task
SetVar ( String Name, dynamic Value ) : void
TemplateContext ( TextWriter Output, TemplateScope Scope = null, TemplateFactory TemplateFactory = null ) : System

Method Details

AddFilter() public method

public AddFilter ( String FilterName, Type Type, String FunctionName ) : void
FilterName String
Type System.Type
FunctionName String
return void

AddFilterLibrary() public method

public AddFilterLibrary ( Type FilterLibraryType ) : void
FilterLibraryType System.Type
return void

AutoFilter() public method

public AutoFilter ( dynamic Value ) : dynamic
Value dynamic
return dynamic

CallFilter() public method

public CallFilter ( string FilterName ) : dynamic
FilterName string
return dynamic

GetVar() public method

public GetVar ( String Name ) : dynamic
Name String
return dynamic

NewScope() public method

public NewScope ( System.Action Action ) : void
Action System.Action
return void

OutputWriteAutoFiltered() public method

public OutputWriteAutoFiltered ( dynamic Value ) : void
Value dynamic
return void

OutputWriteAutoFilteredAsync() public method

public OutputWriteAutoFilteredAsync ( dynamic Value ) : Task
Value dynamic
return Task

SetVar() public method

public SetVar ( String Name, dynamic Value ) : void
Name String
Value dynamic
return void

TemplateContext() public method

public TemplateContext ( TextWriter Output, TemplateScope Scope = null, TemplateFactory TemplateFactory = null ) : System
Output System.IO.TextWriter
Scope TemplateScope
TemplateFactory TemplateFactory
return System

Property Details

Autoescape public property

public bool Autoescape
return bool

Filters public property

public Dictionary> Filters
return Dictionary>

Output public property

public TextWriter,System.IO Output
return System.IO.TextWriter

Parameters public property

public dynamic Parameters
return dynamic

RenderingTemplate public property

public TemplateCode,CSharpUtils.Templates.Runtime RenderingTemplate
return TemplateCode

Scope public property

public TemplateScope,CSharpUtils.Templates.Runtime Scope
return TemplateScope

TemplateFactory public property

public TemplateFactory TemplateFactory
return TemplateFactory