lua-users home
lua-l archive

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


On Oct 15, 2010, at 10:29 PM, Luiz Henrique de Figueiredo wrote:

> H('html',nil,
>    H('head',nil, H('title',nil, 'page title')),
>    H('body',nil,
>        H('div', {id='header',class='banner'},
>            H('p',nil, 'header div')),
>        H('div', {id='main'},
>            H('p',nil, 'main part'),
>            H('img', {src='lolcats/purrr.jpg', alt='lol'}),
>            H('a', {href='somewhere/else.html'}, 'lets go')),
>        H('div',{id='footer'}, H('p',nil,'the end'))))

Alternative syntax:

html{ head{ title{ type = 'bla', 'haha' } }, body{} }

But, as Javier mentioned, not that anyone would want to use such concoction in practice :)