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 : TagDefinition
{
///
/// Initializes a new instance of a MasterTagDefinition.
///
public MasterTagDefinition()
: base(String.Empty, 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 has content.
///
public override bool HasBody
{
get { return true; }
}
///
/// Gets the tags that indicate the end of the tags context.
///
public override IEnumerable ClosingTags
{
get { return new TagDefinition[0]; }
}
///
/// Gets the tags that come into scope within the context of the tag.
///
/// The tags.
protected override TagDefinition[] GetChildTags()
{
return new TagDefinition[]
{
new IfTagDefinition(),
new EachTagDefinition(),
new WithTagDefinition(),
};
}
}
}