C# Class SharpTAL.TemplateInfo

Show file Open project: lck/SharpTAL Class Usage Examples

Public Properties

Property Type Description
GeneratedSourceCode string
GeneratorVersion string
GlobalsTypes Type>.Dictionary
ImportedNamespaces HashSet>.Dictionary
ImportedPrograms Program>.Dictionary
MainProgram Program
ReferencedAssemblies List
RenderMethod System.Reflection.MethodInfo
TemplateBody string
TemplateKey string

Property Details

GeneratedSourceCode public property

Contains the C# source code used to compile the assembly.
public string GeneratedSourceCode
return string

GeneratorVersion public property

Template generator version.
public string GeneratorVersion
return string

GlobalsTypes public property

Types of global objects The key contains the object name. The value contains the object type.
public Dictionary GlobalsTypes
return Type>.Dictionary

ImportedNamespaces public property

Dictionary of paths to imported programs hashed by namespace created by "metal:import" command. The key contains the imported program namespace. The value contains the list of full paths to template files.
public Dictionary> ImportedNamespaces
return HashSet>.Dictionary

ImportedPrograms public property

Dictionary of TemplatePrograms compiled from templates imported by "metal:import" command. The key contains the full path to the template file. The value contains the compiled program.
public Dictionary ImportedPrograms
return Program>.Dictionary

MainProgram public property

Main template program compiled from TemplateBody.
public Program MainProgram
return Program

ReferencedAssemblies public property

List of referenced assemblies.
public List ReferencedAssemblies
return List

RenderMethod public property

Reference to template render method.
public MethodInfo,System.Reflection RenderMethod
return System.Reflection.MethodInfo

TemplateBody public property

Template body.
public string TemplateBody
return string

TemplateKey public property

Contains a unique key that represent the template in the template cache. The template key is computed from the following parts: Template body hash Global types hash Imported templates hash Referenced assemblies hash
public string TemplateKey
return string