Awesome
lighterhtml-plus
This is exactly lighterhtml, plus:
onconnected
callback, as in hyperHTML, to have Custom Elements like callbacksondisconnected
callback, as in hyperHTML, to have counter events when nodes get disconnectedonattributechanged
callback, as in wickedElements, to have attributes change notifications, Custom Elements like
import {render, html} from 'lighterhtml-plus';
render(document.body, html`
<div
onconnected=${event => console.log('connected')}
ondisconnected=${event => console.log('disconnected')}
onattributechanged=${({
attributeName,
oldValue,
newValue
}) => console.log('changed')}
>
lighterhtml-plus 🎉
</div>
`);