C# Class Gablarski.WebServer.ResourceTemplateLoader

Inheritance: ITemplateLoader
ファイルを表示 Open project: ermau/Gablarski

Public Methods

Method 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 method

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

GetFiles() public method

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
return string[]

HasTemplate() public method

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
return bool

LoadTemplate() public method

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.
return TextReader

ResourceTemplateLoader() public method

public ResourceTemplateLoader ( ) : System
return System