using System;
using System.Collections.Generic;
namespace mustache
{
///
/// Defines a pseudo tag that wraps the entire content of a format string.
///
internal sealed class MasterTagDefinition : ContentTagDefinition
{
///
/// Initializes a new instance of a MasterTagDefinition.
///
public MasterTagDefinition()
: base(String.Empty, true)
{
}
///
/// Gets whether the tag only exists within the scope of its parent.
///
protected override bool GetIsContextSensitive()
{
return true;
}
///
/// Gets the name of the tags that indicate that the tag's context is closed.
///
/// The tag names.
protected override IEnumerable GetClosingTags()
{
return new string[] { };
}
///
/// Gets the parameter that is used to create a new child context.
///
/// The parameter that is used to create a new child context.
public override TagParameter GetChildContextParameter()
{
return null;
}
}
}