Update readme
This commit is contained in:
parent
e763312f06
commit
8b67abf32f
1 changed files with 8 additions and 3 deletions
11
readme.md
11
readme.md
|
@ -4,9 +4,14 @@ A functional-friendly helper library for procedural DOM generation and
|
||||||
templating.
|
templating.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import {html} from "skooma.js"
|
import {html} from "skooma/state.js"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Warning
|
||||||
|
|
||||||
|
**This branch is in the process of being aggressively refactored and improved.
|
||||||
|
This readme file may not reflect the latest state of the interface.**
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
@ -22,7 +27,7 @@ document.body.append(html.div(
|
||||||
|
|
||||||
## Interface / Examples
|
## Interface / Examples
|
||||||
|
|
||||||
### Basic DOM generation
|
### Basic DOM generatio
|
||||||
|
|
||||||
Accessing the `html` proxy with any string key returns a new node generator
|
Accessing the `html` proxy with any string key returns a new node generator
|
||||||
function:
|
function:
|
||||||
|
@ -89,7 +94,7 @@ text`Hello, ${html.b(user)}!`
|
||||||
## handle
|
## handle
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import {handle} from 'skooma.js'
|
import {handle} from 'skooma/state.js'
|
||||||
```
|
```
|
||||||
|
|
||||||
Since it is common for event handlers to call `preventDefault()`, skooma
|
Since it is common for event handlers to call `preventDefault()`, skooma
|
||||||
|
|
Loading…
Reference in a new issue