using System;
using System.Collections.Generic;
using System.IO;
namespace Mustache
{
///
/// Defines a tag that cannot contain inner text.
///
public abstract class InlineTagDefinition : TagDefinition
{
///
/// Initializes a new instance of an InlineTagDefinition.
///
/// The name of the tag being defined.
protected InlineTagDefinition(string tagName)
: base(tagName)
{
}
///
/// Initializes a new instance of an InlineTagDefinition.
///
/// The name of the tag being defined.
/// Specifies whether the tag is a built-in tag.
internal InlineTagDefinition(string tagName, bool isBuiltin)
: base(tagName, isBuiltin)
{
}
///
/// Gets or sets whether the tag can have content.
///
/// True if the tag can have a body; otherwise, false.
protected override bool GetHasContent()
{
return false;
}
///
/// Gets the parameters that are used to create a child context.
///
/// The parameters that are used to create a child context.
public override IEnumerable GetChildContextParameters()
{
return new TagParameter[0];
}
}
}