vibe.d beta banner
get vibe.d
0.7.30

Module vibe.templ.diet

Implements a compile-time Diet template parser.

Diet templates are an more or less compatible incarnation of Jade templates but with embedded D source instead of JavaScript. The Diet syntax reference is found at http://vibed.org/templates/diet.

Functions

Name Description
compileDietFile Parses the given Diet template at compile time and writes the resulting HTML code into stream__.
compileDietFileIndent Parses the given Diet template at compile time and writes the resulting HTML code into stream__.
compileDietString The same as compileDietFile, but taking a Diet source code string instead of a file name.
registerDietTextFilter Registers a new text filter for use in Diet templates.
_toString Internal function used for converting an interpolation expression to string

Enum values

Name Type Description
compileDietFileMixin Generates a diet template compiler to use as a mixin.
Authors

Sönke Ludwig

Copyright

© 2012-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.