3 ms·
Understandably, I don't think I explained it all that well. If I look at the Karax example, it seems more like a way of building the HTML in Nim, but I want to
by mrweasel 6y ago
Understandably, I don't think I explained it all that well.
If I look at the Karax example, it seems more like a way of building the HTML in Nim, but I want to write HTML. If you look at Jinja2, then it's HTML, but with a bit of embedded syntax to do loops, conditionals and string replacement, plus a few handy functions.
The built in templates in Go is a bit simplistic, but it's enough for my needs. So something like it would be nice.
As you pointed out the Karax it has type safety, which my suggestions doesn't have. It's also not required, because HTML/text templates doesn't need type safety, it's all just text.
Basically I want nwt, with loops and control statements implemented.
- planetis 6y agoThis might do it https://nim-lang.github.io/Nim/filters.html https://nim-lang.github.io/Nim/filters.html