e.g.
document.body.appendChild($('form', {action: '/submit', method: 'POST'}, [
$('input', {type: 'text', name: 'username'}),
$('br'),
$('input', {type: 'password', name: 'password'}),
$('br'),
$('input', {type: 'submit'})
]));
RE:DOM looks cool too.Since using Haskell's Blaze, I've wanted something close in other languages.