An open API service indexing awesome lists of open source software.

https://github.com/webreflection/lighterhtml-plus

It's lighterhtml with `onconnected`, `ondisconnected`, and `onattributechanged` events
https://github.com/webreflection/lighterhtml-plus

Last synced: over 1 year ago
JSON representation

It's lighterhtml with `onconnected`, `ondisconnected`, and `onattributechanged` events

Awesome Lists containing this project

README

          

# lighterhtml-plus

[![Build Status](https://travis-ci.com/WebReflection/lighterhtml-plus.svg?branch=master)](https://travis-ci.com/WebReflection/lighterhtml-plus) ![WebReflection status](https://offline.report/status/webreflection.svg) [![License: ISC](https://img.shields.io/badge/License-ISC-yellow.svg)](https://opensource.org/licenses/ISC)

This is exactly [lighterhtml](https://github.com/WebReflection/lighterhtml#readme), plus:

* `onconnected` callback, as in [hyperHTML](https://github.com/WebReflection/hyperHTML#hyperhtml), to have Custom Elements like callbacks
* `ondisconnected` callback, as in [hyperHTML](https://github.com/WebReflection/hyperHTML#hyperhtml), to have counter events when nodes get disconnected
* `onattributechanged` callback, as in [wickedElements](https://github.com/WebReflection/wicked-elements#wickedelements), to have attributes change notifications, Custom Elements like

[Live test](https://webreflection.github.io/lighterhtml-plus/test/)

**[V4 Breaking Changes](https://github.com/WebReflection/lighterhtml#v4-breaking-changes)**

```js
import {render, html} from 'lighterhtml-plus';

render(document.body, html`

console.log('connected')}
ondisconnected=${event => console.log('disconnected')}
onattributechanged=${({
attributeName,
oldValue,
newValue
}) => console.log('changed')}
>
lighterhtml-plus 🎉

`);
```