C# Class SharpTAL.TemplateProgram.ProgramGenerator

ZPT (Zope Page Template) parser and Template program generator
Inheritance: SharpTAL.TemplateParser.AbstractTemplateParser
显示文件 Open project: lck/SharpTAL Class Usage Examples

Public Methods

Method Description
GenerateTemplateProgram ( TemplateInfo &ti ) : void
ProgramGenerator ( ) : System

Protected Methods

Method Description
HandleCData ( string data ) : void
HandleComment ( string data ) : void
HandleData ( string data ) : void
HandleDefault ( string data ) : void
HandleEndTag ( Tag tag ) : void
HandleProcessingInstruction ( Element e ) : void
HandleStartTag ( Tag tag ) : void

Private Methods

Method Description
AddTagToStack ( Tag tag, List cleanAttributes ) : TagStackItem
CompileImportedTemplates ( TemplateInfo ti, Program program ) : void
GetTemplateProgram ( string templateBody, string templatePath ) : Program
Handle_METAL_DEFINE_MACRO ( List attributes ) : List
Handle_METAL_DEFINE_PARAM ( List attributes ) : List
Handle_METAL_DEFINE_SLOT ( List attributes ) : List
Handle_METAL_FILL_PARAM ( List attributes ) : List
Handle_METAL_FILL_SLOT ( List attributes ) : List
Handle_METAL_IMPORT ( List attributes ) : List
Handle_METAL_USE_MACRO ( List attributes ) : List
Handle_META_INTERPOLATION ( List attributes ) : List
Handle_TAL_ATTRIBUTES ( List attributes ) : List
Handle_TAL_CONDITION ( List attributes ) : List
Handle_TAL_CONTENT ( List attributes ) : List
Handle_TAL_CONTENT ( List attributes, bool replace ) : List
Handle_TAL_DEFINE ( List attributes ) : List
Handle_TAL_OMITTAG ( List attributes ) : List
Handle_TAL_REPEAT ( List attributes ) : List
Handle_TAL_REPLACE ( List attributes ) : List
PopMetaNamespace ( ) : void
PopMetalNamespace ( ) : void
PopTalNamespace ( ) : void
SetMetaPrefix ( string prefix ) : void
SetMetalPrefix ( string prefix ) : void
SetTalPrefix ( string prefix ) : void

Method Details

GenerateTemplateProgram() public method

public GenerateTemplateProgram ( TemplateInfo &ti ) : void
ti TemplateInfo
return void

HandleCData() protected method

protected HandleCData ( string data ) : void
data string
return void

HandleComment() protected method

protected HandleComment ( string data ) : void
data string
return void

HandleData() protected method

protected HandleData ( string data ) : void
data string
return void

HandleDefault() protected method

protected HandleDefault ( string data ) : void
data string
return void

HandleEndTag() protected method

protected HandleEndTag ( Tag tag ) : void
tag SharpTAL.TemplateParser.Tag
return void

HandleProcessingInstruction() protected method

protected HandleProcessingInstruction ( Element e ) : void
e SharpTAL.TemplateParser.Element
return void

HandleStartTag() protected method

protected HandleStartTag ( Tag tag ) : void
tag SharpTAL.TemplateParser.Tag
return void

ProgramGenerator() public method

public ProgramGenerator ( ) : System
return System