# lua-codegen **Repository Path**: mirrors_LuaDist/lua-codegen ## Basic Information - **Project Name**: lua-codegen - **Description**: a template engine - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README lua-CodeGen : a template engine =============================== Introduction ------------ lua-CodeGen is a "safe" template engine. lua-CodeGen enforces a strict Model-View separation. Only 4 primitives are supplied : - attribute reference, - template include, - conditional include - and template application (i.e., _map_ operation). lua-CodeGen allows to split template in small chunk, and encourages the reuse of them by inheritance. Each chunk of template is like a rule of a grammar for an _unparser generator_. lua-CodeGen is not dedicated to HTML, it could generate any kind of textual code. References ---------- the Terence Parr's articles : + [Enforcing Strict Model-View Separation in Template Engines](http://www.cs.usfca.edu/~parrt/papers/mvc.templates.pdf) + [A Functional Language For Generating Structured Text](http://www.cs.usfca.edu/~parrt/papers/ST.pdf) Links ----- The homepage is at [http://fperrad.github.com/lua-CodeGen](http://fperrad.github.com/lua-CodeGen), and the sources are hosted at [http://github.com/fperrad/lua-CodeGen](http://github.com/fperrad/lua-CodeGen). Copyright and License --------------------- Copyright (c) 2010-2012 Francois Perrad This library is licensed under the terms of the MIT/X11 license, like Lua itself.