2013-04-25 01:21:00 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
2013-05-03 12:44:51 +00:00
|
|
|
|
namespace Mustache
|
2013-04-25 01:21:00 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines a tag that cannot contain inner text.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public abstract class InlineTagDefinition : TagDefinition
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of an InlineTagDefinition.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="tagName">The name of the tag being defined.</param>
|
|
|
|
|
protected InlineTagDefinition(string tagName)
|
|
|
|
|
: base(tagName)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of an InlineTagDefinition.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="tagName">The name of the tag being defined.</param>
|
|
|
|
|
/// <param name="isBuiltin">Specifies whether the tag is a built-in tag.</param>
|
|
|
|
|
internal InlineTagDefinition(string tagName, bool isBuiltin)
|
|
|
|
|
: base(tagName, isBuiltin)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets whether the tag can have content.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>True if the tag can have a body; otherwise, false.</returns>
|
|
|
|
|
protected override bool GetHasContent()
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-04-25 12:46:03 +00:00
|
|
|
|
/// Gets the parameters that are used to create a child context.
|
2013-04-25 01:21:00 +00:00
|
|
|
|
/// </summary>
|
2013-04-25 12:46:03 +00:00
|
|
|
|
/// <returns>The parameters that are used to create a child context.</returns>
|
|
|
|
|
public override IEnumerable<TagParameter> GetChildContextParameters()
|
2013-04-25 01:21:00 +00:00
|
|
|
|
{
|
2013-04-25 12:46:03 +00:00
|
|
|
|
return new TagParameter[0];
|
2013-04-25 01:21:00 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|