Property | Type | Description | |
---|---|---|---|
RenderTokens | string | ||
ResetCurrentDepth | void |
Method | Description | |
---|---|---|
ClearCache ( ) : void |
Clears the Template Token Cache
|
|
Parse ( string template ) : IList |
Parses a template, looks up the template in the template token cache and returns cached version if possible.
|
|
Parse ( string template, |
Parses a template with the given tags, looks up the template in the template token cache and returns cached version if possible.
|
|
Render ( string template, |
Takes a template, context and partials and Renders them using default tags
|
|
Render ( string template, |
Takes a template, context, partials and tags and renders the template
|
|
Render ( string template, object view, string>.IDictionary |
Takes a template, view object, partials and render settings and Renders them using default tags
|
|
Writer ( ) : System |
Initializes a new instance of the Writer class with a default Registry and a cache size of 15
|
|
Writer ( |
Initializes a new instance of the Writer class with a explicit registry and cacheSize of 15
|
|
Writer ( int cacheLimit, |
Initializes a new instance of the Writer class with a cacheLimit and explicit registry
|
Method | Description | |
---|---|---|
RenderTokens ( IList |
Renders a list of tokens with the context, partials and passed original template
|
|
ResetCurrentDepth ( ) : void |
public Parse ( string template ) : IList |
||
template | string | The template to parse |
return | IList |
public Parse ( string template, |
||
template | string | The template to parse |
tags | The tags to parse the template with | |
return | IList |
public Render ( string template, |
||
template | string | The template to parse and render |
context | The context object to use | |
partials | string>.IDictionary | The partials available to the template |
return | string |
public Render ( string template, |
||
template | string | The template to parse and render |
context | The context object to use to render | |
partials | string>.IDictionary | The partials available to the template |
tags | The tags to initalise the parser with | |
return | string |
public Render ( string template, object view, string>.IDictionary |
||
template | string | The template to parse and render |
view | object | The view object to use to render |
partials | string>.IDictionary | The partials available to the template |
settings | The settings to use for rendering | |
return | string |
public Writer ( |
||
registry | The registry to use | |
return | System |
public Writer ( int cacheLimit, |
||
cacheLimit | int | The max size of the template token cache |
registry | The registry to use | |
return | System |