C# Class mustache.CompoundGenerator

Builds text by combining the output of other generators.
Inheritance: IGenerator
Show file Open project: Zocdoc/mustache-sharp Class Usage Examples

Public Methods

Method Description
AddGenerator ( IGenerator generator ) : void

Adds the given generator.

AddGenerator ( TagDefinition definition, IGenerator generator ) : void

Adds the given generator, determining whether the generator should be part of the primary generators or added as an secondary generator.

AddStaticGenerators ( IEnumerable generators ) : void

Creates a StaticGenerator from the given value and adds it.

CompoundGenerator ( TagDefinition definition, ArgumentCollection arguments ) : System

Initializes a new instance of a CompoundGenerator.

Private Methods

Method Description
IGenerator ( KeyScope scope, TextWriter writer ) : void
addGenerator ( IGenerator generator, bool isSubGenerator ) : void

Method Details

AddGenerator() public method

Adds the given generator.
public AddGenerator ( IGenerator generator ) : void
generator IGenerator The generator to add.
return void

AddGenerator() public method

Adds the given generator, determining whether the generator should be part of the primary generators or added as an secondary generator.
public AddGenerator ( TagDefinition definition, IGenerator generator ) : void
definition TagDefinition The tag that the generator is generating text for.
generator IGenerator The generator to add.
return void

AddStaticGenerators() public method

Creates a StaticGenerator from the given value and adds it.
public AddStaticGenerators ( IEnumerable generators ) : void
generators IEnumerable The static generators to add.
return void

CompoundGenerator() public method

Initializes a new instance of a CompoundGenerator.
public CompoundGenerator ( TagDefinition definition, ArgumentCollection arguments ) : System
definition TagDefinition The tag that the text is being generated for.
arguments ArgumentCollection The arguments that were passed to the tag.
return System