C# Class mustache.ConditionTagDefinition

Defines a tag that conditionally prints its content.
Inheritance: ContentTagDefinition
Show file Open project: Zocdoc/mustache-sharp

Public Methods

Method Description
ShouldCreateSecondaryGroup ( 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.

Protected Methods

Method 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

Method Description
isConditionSatisfied ( object condition ) : bool

Method Details

ConditionTagDefinition() protected method

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

GetChildTags() protected method

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

GetParameters() protected method

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

ShouldCreateSecondaryGroup() public method

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

ShouldGeneratePrimaryGroup() public method

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.
return bool