lua-users home
lua-l archive

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


On Thu, Jan 14, 2010 at 8:22 PM, Tobias Kieslich <tobias@justdreams.de> wrote:
> Hi,
>
> I just like to report a success story:
> I build a kid/genshi like xml based template engine (except for that
> it's actually fast :P) which utilizes setfenv in some critical areas to
> "compile" the templates to Lua code and with the help of "loadin" and
> "in env do" it was easy to port it over. By the same time the code
> became much clearer and easier to follow. And thanks to Luas dynamic
> nature it can be utilized based on _VERSION. Sweet.

Sorry for becoming OT, but I'd like to see an example of your
implementation. Whilst I've done one myself, it'd be great to see what
other people did that could add up.

--rb