vibe.d beta banner
get vibe.d
0.8.2

Asynchronous I/O that doesn’t get in your way, written in D

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

NameDescription
registerDietTextFilter(name, filter)Registers a new text filter for use in Diet templates.

Templates

NameDescription
compileDietFileParses the given diet template at compile time and writes the resulting HTML code into 'stream'.
compileDietFileCompatCompatibility version of parseDietFile().
compileDietFileCompatVCompatibility version of parseDietFile().
compileDietFileIndentParses the given diet template at compile time and writes the resulting HTML code into 'stream'.
compileDietStringThe same as compileDietFile, but taking a Diet source code string instead of a file name.
_toStringInternal function used for converting an interpolation expression to string

Manifest constants

NameTypeDescription
compileDietFileMixinGenerates a diet template compiler to use as a mixin.

Aliases

NameTypeDescription
parseDietFilecompatibility alias
parseDietFileCompatcompatibility alias
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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