[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: html builder for lua (a.k.a. templates)
- From: Romulo <romuloab@...>
- Date: Thu, 12 May 2011 17:14:29 -0300
On Thu, May 12, 2011 at 16:22, Dirk Laurie <dpl@sun.ac.za> 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")
--rb