i want an user to be able to use expressions in templates.
nim-templates doesn't seem to support runtime-templates at all,
neither nwt nor the mustach*s seem to evaluate expressions a'la {{ var/23 }}, so I'm currently using plain strutils format.
what would be a simple way to wire up e.g. nim-mathexpr into runtime templates? (if i knew the templates at compile time i guess strformat fmt/& would be an answer)
look's a bit overkill ^^
i'll give it a look if there's a lean way to render text templates without a dom :)
I would use Karax for that fwiw, check out this example:
https://github.com/pragmagic/karax/blob/master/tests/nativehtmlgen.nim