Am 24.09.2016 um 15:04 schrieb WebFreak001:
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 JavaScript, all expressions
and statements are D statements, and everything that can be done at
compile-time is done at compile-time.

Cool, does it also work for generating diet -> html at runtime without
inline D code? Would be pretty neat to have for static pages.

Not included, but that would be relatively trivial to implement by taking the diet.html module and modifying it to output HTML instead of D code. It would actually be really easy to build a Jade/pug compiler that way.

Reply via email to