trending

The idea and original essence of TenTags

The idea behind TenTags is to describe complex table structures (cell spans, text styles, alignment, and background colors) in a single, compact declarative string. This format serves as a universal source (AST), which the library compiles into an identical visual representation for HTML, Excel (.xlsx), and PDF, eliminating the need for the backend to maintain separate templates and write hundreds of lines of boilerplate code for each format.

TenTags – Declarative (IR) for Documents - Declarative Intermediate Representation (IR) for Documents

TenTags is an open-source declarative document language and Intermediate Representation (IR) for generating structured documents. Instead of embedding programming logic into templates, TenTags uses a compact semantic syntax that can be generated by Python applications and AI agents. Compile the same document definition into HTML, PDF, Excel (.xlsx), and future output formats while keeping business logic separate from presentation.