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 : ContentTagDefinition { /// /// Initializes a new instance of a ElseTagDefinition. /// public ElseTagDefinition() : base("else", true) { } /// /// 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 tag's content. /// protected override IEnumerable GetClosingTags() { return new string[] { "if" }; } } }