C# Class Gablarski.WebServer.ResourceTemplateLoader

Inheritance: ITemplateLoader
Afficher le fichier Open project: ermau/Gablarski

Méthodes publiques

Méthode Description
CheckTemplate ( ITemplateInfo info ) : bool

Check's whether a template should be reloaded or not.

GetFiles ( string path, string filename ) : string[]

Fetch all files from the resource that matches the specified arguments.

HasTemplate ( string filename ) : bool

Returns whether or not the loader has an instance of the file requested

LoadTemplate ( string path ) : TextReader

Load a template into a T:System.IO.TextReader and return it.

ResourceTemplateLoader ( ) : System

Method Details

CheckTemplate() public méthode

Check's whether a template should be reloaded or not.
public CheckTemplate ( ITemplateInfo info ) : bool
info ITemplateInfo template information
Résultat bool

GetFiles() public méthode

Fetch all files from the resource that matches the specified arguments.
public GetFiles ( string path, string filename ) : string[]
path string Where the file should reside.
filename string Files to check
Résultat string[]

HasTemplate() public méthode

Returns whether or not the loader has an instance of the file requested
public HasTemplate ( string filename ) : bool
filename string The name of the template/file
Résultat bool

LoadTemplate() public méthode

Load a template into a T:System.IO.TextReader and return it.
public LoadTemplate ( string path ) : TextReader
path string Relative path (and filename) to template.
Résultat TextReader

ResourceTemplateLoader() public méthode

public ResourceTemplateLoader ( ) : System
Résultat System