Name of the main Diet template file.
A list of variables to make available inside of the template, as well as traits structs annotated with the @dietTraits attribute.
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.
import std.array : appender; auto text = appender!string; text.compileHTMLDietFile!("invitation-email.diet", name, address); sendMail(address, text.data);
compileHTMLDietString, compileHTMLDietStrings
Compiles a Diet template file that is available as a string import.
The resulting HTML is written to the output range given as a runtime parameter.