[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Access variables in antother Lua state
- From: Michal Kottman <k0mpjut0r@...>
- Date: Tue, 19 Apr 2011 12:03:30 +0200
On Tue, 2011-04-19 at 11:11 +0200, Marc Balmer wrote:
> The idea is to have the template engine to run in a sandbox of its own,
> preventing access to data and methods the data processing state uses
> (like e.g. DB connections etc.)
If all you need is passing strings around (a sensible assumption for a
template engine), maybe all you need is Rings [1]. It allows you to
create "slave" states from you "master" state, and even pass data from
master to slave and back. It is used for example in WSAPI-Xavante to
isolate the code using WSAPI from the webserver itself.
[1] http://keplerproject.github.com/rings/