Module diet.traits
Definitions to support customization of the Diet compilation process.
Functions
Name | Description |
applyTraits(doc)
|
Applies any transformations that are defined in the supplied traits list.
|
dietTraits()
|
Marks a struct as a Diet traits container.
|
filter(input, filter, output)
|
|
translate(text)
|
Translates a line of text based on the traits passed to the Diet parser.
|
Aliases
Name | Type | Description |
CharacterSink
|
@safe void delegate(const(char[]))
|
|
DietTraits
|
DietTraits.impl!0
|
Extracts all Diet traits structs from a set of aliases as passed to a render function.
|
FilterCallback
|
void delegate(const(char[]), @safe scope void delegate(const(char[])))
|
|
SafeFilterCallback
|
@safe void delegate(const(char[]), @safe scope void delegate(const(char[])))
|
|