3 ms·
I've made a similar sort of DOM DSL: https://github.com/TazeTSchnitzel/jInsert https://github.com/TazeTSchnitzel/jInsert e.g. document.body.appendChild($('f
by TazeTSchnitzel 10y ago
I've made a similar sort of DOM DSL: https://github.com/TazeTSchnitzel/jInsert https://github.com/TazeTSchnitzel/jInsert
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.