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-14 Thread Inkrementator via Digitalmars-d-learn
On Monday, 11 March 2024 at 16:10:24 UTC, Andrea wrote: just trying it out and kinda fits my needs; the main issues are lack of documentation and the need to explicit loop on array data structures in the code (using sub-contexts) instead of having a "foreach" loop statement in the template itse

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 Sergey via Digitalmars-d-learn
On Monday, 11 March 2024 at 15:34:11 UTC, Andrea wrote: There is also diet : https://code.dlang.org/packages/diet-ng Is'nt `diet` specific for HTML / XML structured text ? right. Just mentioned Go library also mostly for HTML generation.

Re: Recommendation about templating engine library

2024-03-11 Thread bachmeier via Digitalmars-d-learn
On Monday, 11 March 2024 at 14:59:52 UTC, Ferhat Kurtulmuş wrote: You have already mentioned mustache-d. If it compiles with the recent compilers go for it. I used it some time a go for a similar task involving in d code gen. I found mustache-d easy enough and good enough for my needs. I hav

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 ?

Re: Recommendation about templating engine library

2024-03-11 Thread Sergey via Digitalmars-d-learn
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

Re: Recommendation about templating engine library

2024-03-11 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Monday, 11 March 2024 at 14:26:01 UTC, Andrea wrote: 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 t

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