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, context)
|
Translates a line of text based on the traits passed to the Diet parser. |
Aliases
Name | Type | Description |
---|---|---|
CharacterSink
|
@safe void delegate(in char[])
|
|
DietTraits
|
DietTraits
|
Extracts all Diet traits structs from a set of aliases as passed to a render function. |
FilterCallback
|
void delegate(in char[], @safe scope void delegate(in char[]))
|
|
SafeFilterCallback
|
@safe void delegate(in char[], @safe scope void delegate(in char[]))
|