Open IgorStepanov opened 9 years ago
There is already a Mustache template implementation (mustache-d), as well as some similar libraries: temple, embd
All of them can work with vibe.d, and I think one of them (I think "temple") has some additional convenience functions for seamless integration into vibe.d apps.
The plan for vibe.d is to eventually split up the library into separate DUB packages, so any new templating solution should already be implemented as a separate package, too. Your implementation looks to have some advanced syntax features - I think some more than mustache-d -, so maybe it makes sense to simply try to extend mustache-d?
The plan for vibe.d is to eventually split up the library into separate DUB packages, so any new templating solution should already be implemented as a separate package, too.
On that topic, do you plan to create a Vibe.d organization, or similar, where project that officially integrate with Vibe.d (and are well tested) are put ? I can foresee some compatibility issues with the moving targets that D and Vibe.d are.
Hello. As I see, vibe.d has only one template tool: diet. Without going into the debate about diet advantages/disadvantages, we have to admit that it looks strange for a beginner, and not always attractive for the experienced user. I suggest to add alternative template tool, similar to mustache templates. In this case, templates in vibe.d seem comfortable for the majority of web programmers. Now about implementation: I have one implementation of templates. Initially, it didn't make for vibe.d, however I ready to adapt it to the requirements of vibe.d What it can: