diet.traits

Definitions to support customization of the Diet compilation process.

Members

Aliases

CharacterSink
alias CharacterSink = void delegate(in char[]) @(safe)
Undocumented in source.
FilterCallback
deprecated alias FilterCallback = void delegate(in char[] input, scope CharacterSink output)
Undocumented in source.
SafeFilterCallback
alias SafeFilterCallback = void delegate(in char[] input, scope CharacterSink output) @(safe)
Undocumented in source.

Functions

applyTraits
Document applyTraits(Document doc)

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

filter
void filter(char[] input, string filter, CharacterSink output)
Undocumented in source. Be warned that the author may not have intended to support it.
translate
string translate(string text, string context)

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.

Structs

DietTraitsAttribute
struct DietTraitsAttribute
Undocumented in source.

Templates

DietTraits
template DietTraits(ALIASES...)

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

Meta