Re: Recommendation about templating engine library

2024-03-14 Thread Andrea via Digitalmars-d-learn
On Thursday, 14 March 2024 at 14:23:36 UTC, Inkrementator wrote: Having used djinn, it is "mostly unmaintained" because it is feature complete. It addresses your criticisms while potentially introducing new problems. It is very simple and the documentation is complete (due to the simplicity).

Re: Recommendation about templating engine library

2024-03-11 Thread Andrea via Digitalmars-d-learn
On Monday, 11 March 2024 at 15:50:28 UTC, bachmeier wrote: I found mustache-d easy enough and good enough for my needs. I haven't used it with a recent compiler, but it's hard to see how it would need much maintenance. just trying it out and kinda fits my needs; the main issues are lack of

Re: Recommendation about templating engine library

2024-03-11 Thread Andrea via Digitalmars-d-learn
On Monday, 11 March 2024 at 15:22:39 UTC, Sergey wrote: On Monday, 11 March 2024 at 14:26:01 UTC, Andrea wrote: Opinions ? Many thanks There is also diet : https://code.dlang.org/packages/diet-ng Is'nt `diet` specific for HTML / XML structured text ?

Recommendation about templating engine library

2024-03-11 Thread Andrea via Digitalmars-d-learn
Hi folks, Working on a side project I have the need to generate text files (mainly D source code) via a templating system. My use case is to have some JSON data populated at runtime from an API and fill-in placeholders in the text with the ability of doing loops over arrays, simple conditions