C# Class RazorEngine.Templating.ResolvePathTemplateManager

A TemplateManager resolving templates by path, given a list of folders to look into.
Inheritance: ITemplateManager
Mostra file Open project: Antaris/RazorEngine Class Usage Examples

Public Methods

Method Description
AddDynamic ( ITemplateKey key, ITemplateSource source ) : void

Throws NotSupportedException.

GetKey ( string name, ResolveType resolveType, ITemplateKey context ) : ITemplateKey

Get the given key.

Resolve ( ITemplateKey key ) : ITemplateSource

Resolve the given key

ResolvePathTemplateManager ( IEnumerable layoutRoots ) : System

Initializes a new TemplateManager.

Protected Methods

Method Description
ResolveFilePath ( string name ) : string

Resolve full file path using layout roots.

Private Methods

Method Description
ResolvePathTemplateManager ( ReadOnlyCollection list ) : System

Method Details

AddDynamic() public method

Throws NotSupportedException.
public AddDynamic ( ITemplateKey key, ITemplateSource source ) : void
key ITemplateKey
source ITemplateSource
return void

GetKey() public method

Get the given key.
public GetKey ( string name, ResolveType resolveType, ITemplateKey context ) : ITemplateKey
name string
resolveType ResolveType
context ITemplateKey
return ITemplateKey

Resolve() public method

Resolve the given key
public Resolve ( ITemplateKey key ) : ITemplateSource
key ITemplateKey
return ITemplateSource

ResolveFilePath() protected method

Resolve full file path using layout roots.
protected ResolveFilePath ( string name ) : string
name string file name
return string

ResolvePathTemplateManager() public method

Initializes a new TemplateManager.
public ResolvePathTemplateManager ( IEnumerable layoutRoots ) : System
layoutRoots IEnumerable the list of folders to look for templates.
return System