I just started playing with nim and was thinking of using it for some rather basic micro-services I need at work. I noticed the htmlgen lib which is great for procedurally generating HTML, but was hoping to find something like Jinja2 for python (http://jinja.pocoo.org/docs/dev/) in Nim. Does anything like this exist?
If not, I'd like to take a stab at starting a project that does. It would be a good way to learn more of Nim and also hopefully contribute something a lot of folks would find useful.
There may be others that I have missed.
Check out tests.nim in nim-templates to see some of the capabilities; it supports a lot of the control-flow of nim, and is compiled into the nimrod AST, so it's basically just as efficient as writing a bunch of string concatenation by hand.
https://github.com/onionhammer/nim-templates/blob/master/tests.nim
It's also not limited to HTML; it can really handle any well structured syntax.
Would be cool to see a Jinja2-like tool available.
Can combine it with Nawak: https://github.com/idlewan/nawak
To make a proper Flask clone.