C# Class Stubble.Core.StaticStubbleRenderer

Represents a Static wrapper for a standard StubbleRenderer instance
Afficher le fichier Open project: StubbleOrg/Stubble

Méthodes publiques

Méthode Description
CacheTemplate ( string template ) : void

Parses a template and adds the result to the writer cache.

CacheTemplate ( string template, Tags tags ) : void

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

Helper method for clearing the Template Cache on the enclosed Instance.

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, Tags 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,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 partials ) : string

Renders the template with the given view and partials using the writer.

Render ( string template, object view, string>.IDictionary partials, RenderSettings settings ) : string

Renders the template with the given view and partials using the writer and the given Render Settings

Render ( string template, object view, RenderSettings settings ) : string

Renders the template with the given view using the writer and the given render settings.

Method Details

CacheTemplate() public static méthode

Parses a template and adds the result to the writer cache.
public static CacheTemplate ( string template ) : void
template string The mustache teplate to parse
Résultat void

CacheTemplate() public static méthode

Parses a template with given tags and adds the result to the writer cache.
public static CacheTemplate ( string template, Tags tags ) : void
template string The mustache teplate to parse
tags Stubble.Core.Classes.Tags The set of tags to use for parsing
Résultat void

CacheTemplate() public static méthode

Parses a template with given tags and adds the result to the writer cache.
public static CacheTemplate ( string template, string tags ) : void
template string The mustache teplate to parse
tags string A tag string split by a space e.g. {{ }}
Résultat void

ClearCache() public static méthode

Helper method for clearing the Template Cache on the enclosed Instance.
public static ClearCache ( ) : void
Résultat void

Parse() public static méthode

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)
public static Parse ( string template ) : IList
template string The mustache teplate to parse
Résultat IList

Parse() public static méthode

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)
public static Parse ( string template, Tags tags ) : IList
template string The mustache teplate to parse
tags Stubble.Core.Classes.Tags The set of tags to use for parsing
Résultat IList

Parse() public static méthode

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)
public static Parse ( string template, string tags ) : IList
template string The mustache teplate to parse
tags string A tag string split by a space e.g. {{ }}
Résultat IList

Render() public static méthode

Renders the template with the given view using the writer.
public static Render ( string template, object view ) : string
template string The mustache teplate to render
view object The data to use for rendering
Résultat string

Render() public static méthode

Renders the template with the given view and partials using the writer.
public static Render ( string template, object view, string>.IDictionary partials ) : string
template string The mustache teplate to render
view object The data to use for rendering
partials string>.IDictionary A hash of Partials
Résultat string

Render() public static méthode

Renders the template with the given view and partials using the writer and the given Render Settings
public static Render ( string template, object view, string>.IDictionary partials, RenderSettings settings ) : string
template string The mustache teplate to render
view object The data to use for rendering
partials string>.IDictionary A hash of Partials
settings Stubble.Core.Classes.RenderSettings Any settings you wish to override the defaults with
Résultat string

Render() public static méthode

Renders the template with the given view using the writer and the given render settings.
public static Render ( string template, object view, RenderSettings settings ) : string
template string The mustache teplate to render
view object The data to use for rendering
settings Stubble.Core.Classes.RenderSettings Any settings you wish to override the defaults with
Résultat string