3 ms·
This is a little confusing because C++ already has an unrelated built-in template concept (including the keyword "template"). In C++ terms this is a library th
by bregma 5y ago
This is a little confusing because C++ already has an unrelated built-in template concept (including the keyword "template").
In C++ terms this is a library that generates HTML, not a template engine.
- contravariant 5y agoTo be a bit more precise it's a library that renders strings from a template. The result may or may not be valid HTML.
- ainiriand 5y agoMy thoughts precisely. Maybe it could be renamed to string parser and replacer(?) for C++. SPaRC.
- WalterGR 5y ago“Template” is a term of art for this sort of thing, but if you’re looking for an alternative, there’s already “macro processor” for things like this. It’s what GNU’s M4 is called, for example. https://en.m.wikipedia.org/wiki/M4_(computer_language) https://en.m.wikipedia.org/wiki/M4_(computer_language) But - whoops - now you’ve got collision with C++ “macros” - which already has collision with Lisp “macros” and text editor / word processor macros - and “processor” which looks a lot like the C++ “preprocessor” and …
- rileymat2 5y agoI am fine with it “templating engine” has a pretty well defined meaning as a group of words. If it was called “modern templating for c++” I would agree.
- pier25 5y agoIn web dev terms it makes total sense.
- rileymat2 5y agoWhat is not clear to me, from a scan of the docs is if it properly escapes strings for html, or if it is a general templating system for strings.
- olliej 5y agoI will admit I followed the link because I was expecting some kind of lovecraftian template horror, only to discover it was templates in the string sense. I'm not sure whether I should be disappointed or relieved :D