[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: html builder for lua (a.k.a. templates)
- From: Petite Abeille <petite.abeille@...>
- Date: Thu, 12 May 2011 20:05:21 +0200
On May 12, 2011, at 5:28 PM, Emmanuel Oga wrote:
> It does not look that bad, does it?
Strikingly similar syntax :)
local Tag = require( 'Tag' )
local HTML = Tag.HTML
print( HTML( function() return html{ head{ title{ type = 'bla', 'haha', 'hoho' } }, body{} } end ) )
> <html><head><title type='bla'>hahahoho</title></head><body></body></html>
http://pastie.org/1893914
> I think writing a web application templates in the way outlined in
> that example could be a viable option. What do you think?
Well, I personally think it's a baroque waste of time :))