- basenameWithoutExtension
string basenameWithoutExtension(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
- identity
string identity(string str, string context)
Dummy translation function that returns the input unmodified.
- isAlpha
bool isAlpha(dchar c)
- isDirSeparator
bool isDirSeparator(char c)
Undocumented in source. Be warned that the author may not have intended to support it.
- nodeEq
bool nodeEq(Node[] arr1, Node[] arr2)
Undocumented in source. Be warned that the author may not have intended to support it.
- parseDiet
Document parseDiet(string text, string filename)
Document parseDiet(F files)
Parses a Diet template document and outputs the resulting DOM tree.
- parseDietRaw
Node[] parseDietRaw(immutable(InputFile) file)
Parses a single Diet template file, without resolving includes and extensions.
Generic Diet format parser.
Performs generic parsing of a Diet template file. The resulting AST is agnostic to the output format context in which it is used. Format specific constructs, such as inline code or special tags, are parsed as-is without any preprocessing.
The supported features of the are: