Property | Type | Description | |
---|---|---|---|
StubbleRenderer | System.Collections.Generic |
Method | Description | |
---|---|---|
CacheTemplate ( string template ) : void |
Parses a template and adds the result to the writer cache.
|
|
CacheTemplate ( string template, |
Parses a template with given tags and adds the result to the writer cache.
|
|
CacheTemplate ( string template, string tags ) : void |
Parses a template with given tags and adds the result to the writer cache.
|
|
ClearCache ( ) : void |
Clears all cached templates in the Writer.
|
|
Parse ( string template ) : IList |
Parses and caches the given template in the writer and returns the list of tokens it contains. Doing this ahead of time avoids the need to parse templates on the fly as they are rendered. If you don't need the result CacheTemplate(string)
|
|
Parse ( string template, |
Parses and caches the given template in the writer and returns the list of tokens it contains. Doing this ahead of time avoids the need to parse templates on the fly as they are rendered. If you don't need the result CacheTemplate(string,Tags)
|
|
Parse ( string template, string tags ) : IList |
Parses and caches the given template in the writer and returns the list of tokens it contains. Doing this ahead of time avoids the need to parse templates on the fly as they are rendered. If you don't need the result CacheTemplate(string,string)
|
|
Render ( string template, object view ) : string |
Renders the template with the given view using the writer.
|
|
Render ( string template, object view, string>.IDictionary |
Renders the template with the given view and partials using the writer.
|
|
Render ( string template, object view, string>.IDictionary |
Renders the template with the given view and partials using the writer and the given Render Settings
|
|
Render ( string template, object view, |
Renders the template with the given view using the writer and the given render settings.
|
|
StubbleRenderer ( ) : System.Collections.Generic |
Initializes a new instance of the StubbleRenderer class with a default Registry
|
Method | Description | |
---|---|---|
StubbleRenderer ( |
Initializes a new instance of the StubbleRenderer class with a passed Registry
|
public CacheTemplate ( string template ) : void | ||
template | string | The mustache teplate to parse |
return | void |
public CacheTemplate ( string template, |
||
template | string | The mustache teplate to parse |
tags | The set of tags to use for parsing | |
return | void |
public CacheTemplate ( string template, string tags ) : void | ||
template | string | The mustache teplate to parse |
tags | string | A tag string split by a space e.g. {{ }} |
return | void |
public Parse ( string template ) : IList |
||
template | string | The mustache teplate to parse |
return | IList |
public Parse ( string template, |
||
template | string | The mustache teplate to parse |
tags | The set of tags to use for parsing | |
return | IList |
public Parse ( string template, string tags ) : IList |
||
template | string | The mustache teplate to parse |
tags | string | A tag string split by a space e.g. {{ }} |
return | IList |
public Render ( string template, object view ) : string | ||
template | string | The mustache teplate to render |
view | object | The data to use for rendering |
return | string |
public Render ( string template, object view, string>.IDictionary |
||
template | string | The mustache teplate to render |
view | object | The data to use for rendering |
partials | string>.IDictionary | A hash of Partials |
return | string |
public Render ( string template, object view, string>.IDictionary |
||
template | string | The mustache teplate to render |
view | object | The data to use for rendering |
partials | string>.IDictionary | A hash of Partials |
settings | Any settings you wish to override the defaults with | |
return | string |
public Render ( string template, object view, |
||
template | string | The mustache teplate to render |
view | object | The data to use for rendering |
settings | Any settings you wish to override the defaults with | |
return | string |
public StubbleRenderer ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |