DocumentOutput

A wrapper over a function, with additional methods added to support XML/HTML generation.

Members

Functions

opBinary
void opBinary(T rhs)

Append a string or Element to the stream.

opBinary
void opBinary(InterpolationHeader , Ts text)

Write an istring to the stream.

pushElementMarkup
void pushElementMarkup(string content)

Low-level function to write elements into current document context. Raw markup can be used, i.e. ("<b>Hi</b>")` will include unescaped HTML code.

pushElementText
void pushElementText(string content)
void pushElementText(Ts content)

Low-level function to write escaped text.

Variables

elementOutput
void delegate(string fragment) @(safe) elementOutput;

Function to call to append a string fragment to the output.

Meta