Hello,
I wrote a small library for embedding Lua into templates.
Rockspec: http://rocks.moonscript.org/manifests/leafo/elua-1.0.0-1.rockspec
Details: https://github.com/leafo/elua#elua
I saw a few various implementations with slightly different syntax floating
around but I decided to write one with a couple enhancements.
Templates are compiled into Lua functions so rendering is really fast. The
parser is aware of Lua strings so you can put a closing tag in a string
literal without breaking the parser. Also compile time errors are rewritten
in the context of the template so it's easy to see where typos are.
It's primarily designed for rendering HTML templates as it has HTML
escaping tag, but it can be used for anything else really.
I'm aware that there is another project called eLua for doing embedded
systems with Lua. It didn't seem like the kind of project that would expose
itself as a module in LuaRocks (maybe?) so I decided to use the name elua
for this project. If you think that's unfair then I can see about changing
the name.
Thanks
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers