using System; using System.Collections.Generic; 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; } public sealed override string Decorate(IFormatProvider provider, string innerText, Dictionary arguments) { return Decorate(provider, arguments); } public abstract string Decorate(IFormatProvider provider, Dictionary arguments); } }