Diet-NG 1.0.0 released

Sönke Ludwig via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Sep 25 01:46:39 PDT 2016


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.


More information about the Digitalmars-d-announce mailing list