On Friday, 23 September 2016 at 11:47:23 UTC, Sönke Ludwig wrote:
The Diet template language is aimed at providing a way to
define procedurally generated HTML/XML pages (or other output
formats), with minimal visual noise. Syntax and feature set are
heavily inspired by pug <https://pugjs.org/>, but instead of
and everything that can be done at compile-time is done at
The library is now considered ready for (careful) production
use and can be used with the latest pre-release versions of
vibe.d (just add it as a dependency to your project and vibe.d
will use it for rendering Diet templates automatically).
For more information about the improvements of this library
over the original implementation that (still) comes with
vibe.d, see the original announcement:
Does this basically convert the dt file in to a d file with a
embedded html output statements?
corresponding d file:
output outputs the html text directly and the d code is executed.
Of course, I guess some fixups need to happen on the html code
for embedded variables and such.
Just wondering about how it is done conceptually.