lua-users home
lua-l archive

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

On Thu, May 12, 2011 at 16:22, Dirk Laurie <> wrote:
> On Thu, May 12, 2011 at 08:40:14PM +0200, Romulo wrote:
>> It is easier to just inject Lua into a html file than to write
>> everything with Lua.
> Do you mean there is a way of embedding a Lua script inside HTML
> which will be executed when you open the file with your browser?

No, sorry. I meant inject Lua code into server-side html templates.
See the Tir example by Gaspard Bucher, but with a reduced syntax for
Lua (no "do", "then", "function", "while", "repeat")