lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Cosmo is a "safe templates" engine.  It allows you to fill nested
templates, providing many of the advantages of Turing-complete
template engines, without without the downside of allowing arbitrary
code in the templates unless you wish to provide it.

Cosmo is implemented as an LPEG grammar, mostly using LPEG's "re"
language.

The current version of Cosmo is 9.09.22. This version extends the template
language with arbitrary expressions in selector applications, and adds
better error detection when compiling templates

Cosmo is installed as a rock. To install the most recent release
do `luarocks install cosmo`. No C compiler is necessary, as Cosmo is 100%
Lua code.

See http://cosmo.luaforge.net for a tutorial. Source control and issue
tracking is at http://github.com/mascarenhas/cosmo.

--
Fabio Mascarenhas, Lablua
http://www.lua.inf.puc-rio.br