lua-users home
lua-l archive

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


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 :))