Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Lua Perl

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
cmake
rockspec
src
test
.gitignore
.travis.yml
CHANGES
CMakeLists.txt
COPYRIGHT
Makefile
README.md
dist.info
rockspec.in

README.md

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 :

Links

The homepage is at http://fperrad.github.com/lua-CodeGen, and the sources are hosted at 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.

Something went wrong with that request. Please try again.