
HypertextLiteral Overview
HypertextLiteral is a Swift package for generating HTML, XML, and other SGML dialects. It uses custom string interpolation to append and escape values based on context, with built-in affordances for common patterns and an extensible architecture for defining your own behavior.
HypertextLiteral is small and self-contained with no external dependencies. You can get up to speed in just a few minutes, without needing to learn any new APIs or domain-specific languages (DSLs). Less time fighting your tools means more time spent generating web content.
This project is inspired by and borrows implementation details from Hypertext Literal by Mike Bostock (@mbostock).
HypertextLiteral is small and self-contained with no external dependencies. You can get up to speed in just a few minutes, without needing to learn any new APIs or domain-specific languages (DSLs). Less time fighting your tools means more time spent generating web content.
This project is inspired by and borrows implementation details from Hypertext Literal by Mike Bostock (@mbostock).