vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Module diet.html

HTML output generator implementation.

Functions

NameDescription
getHTMLLiveMixin(doc, range_name, 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(doc, range_name, style) Returns a mixin string that generates HTML for the given DOM tree.
getHTMLRawTextOnly(doc, range_name, 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.

Enums

NameDescription
HTMLOutputStyle Determines how the generated HTML gets styled.

Templates

NameDescription
compileHTMLDietFileString Compiles a Diet template given as a string, with support for includes and extensions.
compileHTMLDietString Compiles a Diet template given as a string.
compileHTMLDietStrings Compiles a set of Diet template files.

Aliases

NameTypeDescription
compileHTMLDietFile compileHTMLDietFileString!(filename,_dietFileData!filename.contents,ALIASES) Compiles a Diet template file that is available as a string import.
Authors
Copyright
License