C# Class SharpTAL.TemplateCache.FileSystemTemplateCache

Inheritance: AbstractTemplateCache
Mostrar archivo Open project: lck/SharpTAL Class Usage Examples

Public Methods

Method Description
CompileTemplate ( string templateBody, Type>.Dictionary globalsTypes, List referencedAssemblies ) : TemplateInfo
FileSystemTemplateCache ( string cacheFolder ) : System

Initialize the filesystem template cache

FileSystemTemplateCache ( string cacheFolder, bool clearCache ) : System

Initialize the filesystem template cache

FileSystemTemplateCache ( string cacheFolder, bool clearCache, string pattern ) : System

Initialize the filesystem template cache

Private Methods

Method Description
InitCache ( bool clearCache ) : void
LoadTemplatesInfo ( string cacheFolder ) : TemplateInfo>.Dictionary

Method Details

CompileTemplate() public method

public CompileTemplate ( string templateBody, Type>.Dictionary globalsTypes, List referencedAssemblies ) : TemplateInfo
templateBody string
globalsTypes Type>.Dictionary
referencedAssemblies List
return TemplateInfo

FileSystemTemplateCache() public method

Initialize the filesystem template cache
public FileSystemTemplateCache ( string cacheFolder ) : System
cacheFolder string Folder where cache will write and read generated assemblies
return System

FileSystemTemplateCache() public method

Initialize the filesystem template cache
public FileSystemTemplateCache ( string cacheFolder, bool clearCache ) : System
cacheFolder string Folder where cache will write and read generated assemblies
clearCache bool If it's true, clear all files matching the default pattern from cache folder
return System

FileSystemTemplateCache() public method

Initialize the filesystem template cache
public FileSystemTemplateCache ( string cacheFolder, bool clearCache, string pattern ) : System
cacheFolder string Folder where cache will write and read generated assemblies
clearCache bool If it's true, clear all files matching the from cache folder
pattern string /// File name regular expression pattern. /// Default pattern is "Template_{key}.dll". /// Macro {key} will be replaced with computed hash key." ///
return System