C# Class SharpTAL.TemplateCache.FileSystemTemplateCache

Inheritance: AbstractTemplateCache
Afficher le fichier Open project: lck/SharpTAL Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
InitCache ( bool clearCache ) : void
LoadTemplatesInfo ( string cacheFolder ) : TemplateInfo>.Dictionary

Method Details

CompileTemplate() public méthode

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

FileSystemTemplateCache() public méthode

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

FileSystemTemplateCache() public méthode

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
Résultat System

FileSystemTemplateCache() public méthode

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." ///
Résultat System