Lua can be a really cool HTML templating engine
Summary
The article advocates using Lua as a small, fast language for building HTML templating DSLs. It walks through how to implement a safe HTML builder with escaping, void elements handling, and deterministic attribute ordering, and compares approaches from Handlebars, Go's text/template, and Maud. It also shows ergonomic improvements for a Lua-based templating API and discusses design trade-offs for template DSLs.