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'.
compileDietFileCompat Compatibility version of parseDietFile().
compileDietFileCompatV Compatibility version of parseDietFile().
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

Global variables

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

Aliases

Name Type Description
parseDietFile compatibility alias
parseDietFileCompat compatibility alias

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

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