[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Narcissus in Lua (Javascript parser)
- From: Petite Abeille <petite_abeille@...>
- Date: Fri, 15 Oct 2010 23:07:57 +0200
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 :)