On Sun, Sep 25, 2016 at 10:46 AM, Sönke Ludwig via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote:
> 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. > If you just want to do runtime jade -> html right now you can use my Jade implementation [0]. I don't think it has any users though so your mileage may vary. Even I use Diet :) R [0] https://github.com/rjmcguire/jaded