Tag

Generic XML or HTML tag.

Alias This

output

Members

Functions

attr
Tag attr(string name, string value)
Tag attr(string name, InterpolationHeader , Ts value)

Add an attribute to the element.

attr
Tag attr(Attribute[] attributes)

Add a prepared set of attributes to the element.

attributed
Tag attributed()
begin
void begin()
Undocumented in source. Be warned that the author may not have intended to support it.
beginAttributes
void beginAttributes()
Undocumented in source. Be warned that the author may not have intended to support it.
end
void end()
Undocumented in source. Be warned that the author may not have intended to support it.
makeSelfClosing
Tag makeSelfClosing()
opBinary
void opBinary(typeof(null) )
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
void opBinary(T content)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
void opBinary(InterpolationHeader , Ts text)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
void opBinary(void delegate() @(safe) builder)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
void opBinary(void delegate() @(system) builder)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

isSelfClosing
bool isSelfClosing;

If true, this is a "self-closing" tag. No child nodes or text can be added.

output
DocumentOutput output;

Output target for this tag; XML/HTML code will be written to this destination.

tagName
string tagName;

Name of the XML or HTML tag, for example book for <book> or div for <div></div>.

withAttributes
bool withAttributes;

True if an attribute has been added to this tag.

Meta