HTML Templates
I made a template engine from scratch. Sort of.
I had used Maud for Rust before, and I thought maybe it would be cool if there was something like it for C++, as well.
I'm sort of testing it at the moment, I suppose you could say.
Having realized that websites pretty much reduce down to static pages unless there's databases or maybe authentication involved, I knew that if you have to generate that dynamic stuff, it's best to do it in-memory and not involve any I/O – at least within your own app. That's why I created Cantrip.
Plus, the syntax turned out to be kind of fun. It resembles JSX in a way. You could use it to generate static pages beforehand, too.
And the whole thing is way less than 200 lines or something. As a sort of "testimony", this entire page is written using Cantrip. I'm not sure if the HTML is completely legal. But the browsers seem to render it just fine.
If you spot a serious error in the HTML markup on this site, let me know.
It was also kind of an experiment in what the pmr-style STL data structures (strings) could do. The goal was to not allocate memory until the very end. Maybe later I might care to optimize further to make it really, really, really no-allocation. But not right now. Probably never. We'll see.
The code is on GitHub, MPL'd. I really should start looking into alternatives, such as Gitlab.
Maybe I'll whip up a logo for this one or something.