|
|
|
|
|
by brundolf
1386 days ago
|
|
I've found you don't actually need a templating system, you just need format-strings. Write your rendering logic with normal code that just spits out a string Templating languages probably help with performance a bit when you're rendering at request-time, but for static stuff I don't really see much point I've got a hand-rolled static site generator in JavaScript that just uses template strings. I only have around 30 pages, to be fair, but when I make a change it re-generates the whole site before I can even alt-tab and reload the page. I assume a C++ version could be much faster |
|