diet.html

HTML output generator implementation.

Members

Enums

HTMLOutputStyle
enum HTMLOutputStyle

Determines how the generated HTML gets styled.

Functions

getHTMLLiveMixin
string getHTMLLiveMixin(Document doc, string range_name, string htmlPiecesMapName)

This returns a "live" version of the mixin. The live version generates the code skeleton and then accepts a list of HTML strings that go between the code to output. This way, you can read the diet template at runtime, and if any non-code changes are made, you can avoid recompilation.

getHTMLMixin
string getHTMLMixin(Document doc, string range_name, HTMLOutputStyle style)

Returns a mixin string that generates HTML for the given DOM tree.

getHTMLRawTextOnly
string getHTMLRawTextOnly(Document doc, string range_name, HTMLOutputStyle style)

This is like getHTMLMixin, but returns only the NON-code portions of the diet template. The usage is for the DietLiveMode, which can update the HTML portions of the diet template at runtime without requiring a recompile.

Templates

compileHTMLDietFile
template compileHTMLDietFile(string filename, ALIASES...)

Compiles a Diet template file that is available as a string import.

compileHTMLDietFileString
template compileHTMLDietFileString(string filename, alias contents, ALIASES...)

Compiles a Diet template given as a string, with support for includes and extensions.

compileHTMLDietString
template compileHTMLDietString(string contents, ALIASES...)

Compiles a Diet template given as a string.

compileHTMLDietStrings
template compileHTMLDietStrings(alias FILES_GROUP, ALIASES...)

Compiles a set of Diet template files.

Meta