MustacheSharp/mustache-sharp/MasterTagDefinition.cs

37 lines
1.0 KiB
C#
Raw Normal View History

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