Introduction - rep-movsd/see-phit GitHub Wiki
See-phit is a compile time HTML templating library written in modern C++.
You write plain HTML as C++ string literals and it is parsed at compile time into a DOM like data structure.
It makes your "stringly typed" HTML text into an actual strongly typed DSL.
C17 is required to use it. It implements a fairly complete HTML parser as constexpr functions. Before constexpr, the way to make C DSLs was by (ab)using operator overloading in ingenious ways, but now we can actually have a DSL as a user literal string and let the compiler compile your DSL into C++