C# Class Mustache.ConditionTagDefinition

Defines a tag that conditionally prints its content.
Inheritance: Mustache.ContentTagDefinition
Afficher le fichier Open project: ExactTargetDev/mustache-sharp

Méthodes publiques

Méthode Description
GetChildContextParameters ( ) : IEnumerable

Gets the parameters that are used to create a new child context.

ShouldCreateSecondaryGroup ( Mustache.TagDefinition definition ) : bool

Gets whether the given tag's generator should be used for a secondary (or substitute) text block.

ShouldGeneratePrimaryGroup ( object>.Dictionary arguments ) : bool

Gets whether the primary generator group should be used to render the tag.

Méthodes protégées

Méthode Description
ConditionTagDefinition ( string tagName ) : System

Initializes a new instance of a ConditionTagDefinition.

GetChildTags ( ) : IEnumerable

Gets the tags that come into scope within the context of the current tag.

GetParameters ( ) : IEnumerable

Gets the parameters that can be passed to the tag.

Private Methods

Méthode Description
isConditionSatisfied ( object condition ) : bool

Method Details

ConditionTagDefinition() protected méthode

Initializes a new instance of a ConditionTagDefinition.
protected ConditionTagDefinition ( string tagName ) : System
tagName string The name of the tag.
Résultat System

GetChildContextParameters() public méthode

Gets the parameters that are used to create a new child context.
public GetChildContextParameters ( ) : IEnumerable
Résultat IEnumerable

GetChildTags() protected méthode

Gets the tags that come into scope within the context of the current tag.
protected GetChildTags ( ) : IEnumerable
Résultat IEnumerable

GetParameters() protected méthode

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

ShouldCreateSecondaryGroup() public méthode

Gets whether the given tag's generator should be used for a secondary (or substitute) text block.
public ShouldCreateSecondaryGroup ( Mustache.TagDefinition definition ) : bool
definition Mustache.TagDefinition The tag to inspect.
Résultat bool

ShouldGeneratePrimaryGroup() public méthode

Gets whether the primary generator group should be used to render the tag.
public ShouldGeneratePrimaryGroup ( object>.Dictionary arguments ) : bool
arguments object>.Dictionary The arguments passed to the tag.
Résultat bool