vibe.d beta banner
get vibe.d
0.8.0

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

Alias compileHTMLDietFile

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

alias compileHTMLDietFile(string filename, ALIASES...) = compileHTMLDietFileString!(filename,stripUTF8BOM(import(filename)),ALIASES);

The final HTML will be written to the given _diet_output output range.

Parameters

NameDescription
filename Name of the main Diet template file.
ALIASES A list of variables to make available inside of the template, as well as traits structs annotated with the @dietTraits attribute.
dst The output range to write the generated HTML to.

Traits

In addition to the default Diet traits, adding an enum field htmlOutputStyle of type HTMLOutputStyle to a traits struct can be used to control the style of the generated HTML.

See Also

compileHTMLDietString, compileHTMLDietStrings

Authors
Copyright
License