C# Class mustache.EachTagDefinition

Defines a tag that can iterate over a collection of items and render the content using each item as the context.
Inheritance: ContentTagDefinition
Mostra file Open project: Zocdoc/mustache-sharp Class Usage Examples

Public Methods

Method Description
EachTagDefinition ( ) : System

Initializes a new instance of an EachTagDefinition.

GetChildContext ( TextWriter writer, KeyScope scope, object>.Dictionary arguments ) : IEnumerable

Gets the context to use when building the inner text of the tag.

Protected Methods

Method Description
GetChildTags ( ) : IEnumerable

Gets the tags that are in scope under this tag.

GetIsContextSensitive ( ) : bool

Gets whether the tag only exists within the scope of its parent.

GetParameters ( ) : IEnumerable

Gets the parameters that can be passed to the tag.

Method Details

EachTagDefinition() public method

Initializes a new instance of an EachTagDefinition.
public EachTagDefinition ( ) : System
return System

GetChildContext() public method

Gets the context to use when building the inner text of the tag.
public GetChildContext ( TextWriter writer, KeyScope scope, object>.Dictionary arguments ) : IEnumerable
writer System.IO.TextWriter The text writer passed
scope KeyScope The current scope.
arguments object>.Dictionary The arguments passed to the tag.
return IEnumerable

GetChildTags() protected method

Gets the tags that are in scope under this tag.
protected GetChildTags ( ) : IEnumerable
return IEnumerable

GetIsContextSensitive() protected method

Gets whether the tag only exists within the scope of its parent.
protected GetIsContextSensitive ( ) : bool
return bool

GetParameters() protected method

Gets the parameters that can be passed to the tag.
protected GetParameters ( ) : IEnumerable
return IEnumerable