using System;
using System.Collections.Generic;
namespace mustache
{
///
/// Defines a tag that conditionally renders its content if preceding if and elif tags fail.
///
internal sealed class ElifTagDefinition : ConditionTagDefinition
{
///
/// Initializes a new instance of an ElifTagDefinition.
///
public ElifTagDefinition()
: base("elif")
{
}
///
/// Gets whether the tag only exists within the scope of its parent.
///
protected override bool GetIsContextSensitive()
{
return true;
}
///
/// Gets the tags that indicate the end of the current tags context.
///
protected override IEnumerable GetClosingTags()
{
return new string[] { "if" };
}
}
}