A idea to improve diet-ng compile speed!

workman workman at gmail.com
Thu Aug 12 15:48:29 UTC 2021


On Thursday, 12 August 2021 at 14:51:28 UTC, Steven Schveighoffer 
wrote:
>
> Yes, that is exactly what `extends` does. Same keywords even. 
> See 
> [docs](https://github.com/rejectedsoftware/diet-ng/blob/master/SPEC.md#extension-includes) (they are a bit sparse, but there's an example there to help you understand how to do it).
>
> -Steve

Thanks again for the tips.

The `extends file(.ext)` is not implement yet, and `include 
section.dt` is not work like other popular template system ( need 
super() or parent() ).


I am think of use https://mozilla.github.io/nunjucks/ as a client 
side solution, it is easy to add a server side render solution 
with quickjs or a nodejs.


More information about the Digitalmars-d mailing list