using System;
using System.Collections.Generic;
namespace mustache
{
///
/// Defines a tag that renders its content if all preceding if and elif tags.
///
internal sealed class ElseTagDefinition : TagDefinition
{
///
/// Initializes a new instance of a ElseTagDefinition.
///
public ElseTagDefinition()
: base("else", true)
{
}
///
/// Gets the parameters that can be passed to the tag.
///
/// The parameters.
protected override TagParameter[] GetParameters()
{
return new TagParameter[0];
}
///
/// Gets whether the tag contains content.
///
public override bool HasBody
{
get { return true; }
}
///
/// Gets the tags that indicate the end of the current tag's content.
///
public override IEnumerable ClosingTags
{
get { return new TagDefinition[] { new IfTagDefinition() }; }
}
///
/// Gets the tags that come into scope within the context of the tag.
///
/// The tag definitions.
protected override TagDefinition[] GetChildTags()
{
return new TagDefinition[0];
}
}
}