r/cpp • • Jun 27 '20

HTML++: Write HTML documents using C++ templates

https://github.com/csb6/html-plus-plus
260 Upvotes

27 comments sorted by

View all comments

55

u/looncraz Jun 27 '20

This, frankly, looks easier than writing HTML directly... Plus free error checking... Too bad template error messages are horrendously ugly.

1

u/csb06 Jun 28 '20

Like u/AirAKose said, static_asserts with custom error messages help a lot. I’ve found the error output isn’t too bad, since the static_assert usually gets triggered pretty immediately and stops compilation. Concepts should help even more.