Package Exports
- lighterhtml-plus
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lighterhtml-plus) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
lighterhtml-plus
This is exactly lighterhtml, plus:
onconnectedcallback, as in hyperHTML, to have Custom Elements like callbacksondisconnectedcallback, as in hyperHTML, to have counter events when nodes get disconnectedonattributechangedcallback, 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>
`);