See Phit

screenshot of See Phit

A C++ HTML template engine that uses compile time HTML parsing

Overview:

See-phit is a compile time HTML templating library written in modern C++. It allows you to write plain HTML as C++ string literals, which are then parsed at compile time into a DOM-like data structure. This library transforms your "stringly typed" HTML text into an actual strongly typed Domain Specific Language (DSL). It requires C++14 to compile and implements a comprehensive HTML parser as constexpr functions. See-phit also provides intelligent error messages if the HTML is malformed, making it easy to debug during compilation.

Features:

  • Compile time parsing: See-phit allows you to write HTML as C++ string literals and parses them at compile time into a structured data model.
  • Strongly typed DSL: By using See-phit, your HTML code becomes strongly typed, eliminating any issues related to "stringly typed" HTML.
  • Intelligent error messages: See-phit generates detailed error messages during compilation if the HTML code is malformed, helping developers identify and fix issues quickly.

Summary:

See-phit is a powerful compile-time HTML templating library written in modern C++. It allows developers to write HTML as C++ string literals and parses them at compile time into a structured data model. The library provides a strongly typed DSL, intelligent error messages during compilation, and easy integration into C++ projects. See-phit simplifies HTML templating and enhances the development experience by eliminating "stringly typed" HTML code and ensuring that the generated HTML is free from errors. With future plans to add more templating functionality and optimize the engine, See-phit is a promising solution for C++ developers working on projects that involve HTML templating.