diet.traits

Definitions to support customization of the Diet compilation process.

Members

Functions

applyTraits
Document applyTraits(Document doc)

Applies any transformations that are defined in the supplied traits list.

translate
string translate(string text)

Translates a line of text based on the traits passed to the Diet parser.

Properties

dietTraits
DietTraitsAttribute dietTraits [@property getter]

Marks a struct as a Diet traits container.

Templates

DietTraits
template DietTraits(ALIASES...)

Extracts all Diet traits structs from a set of aliases as passed to a render function.

Meta