C# Class mustache.CompoundGenerator

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

Méthodes publiques

Méthode 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

Méthode Description
IGenerator ( KeyScope scope, TextWriter writer ) : void
addGenerator ( IGenerator generator, bool isSubGenerator ) : void

Method Details

AddGenerator() public méthode

Adds the given generator.
public AddGenerator ( IGenerator generator ) : void
generator IGenerator The generator to add.
Résultat void

AddGenerator() public méthode

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.
Résultat void

AddStaticGenerators() public méthode

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

CompoundGenerator() public méthode

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.
Résultat System