Skip to content

Commit

Permalink
Add innerHTML documentation and upgrade deps (#10)
Browse files Browse the repository at this point in the history
* Add innerHTML documentation to readme

* Upgrade node module dependencies
  • Loading branch information
christianbundy authored and ungoldman committed Aug 5, 2019
1 parent 8db1ab2 commit 09d5675
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ var { p } = require('hyperaxe')
p('this is convenient')
```

You can pass raw HTML by setting the `innerHTML` property of an element.

```javascript
var { div } = require('hyperaxe')

div({ innerHTML: '<p>Raw HTML!' })
```

### `hyperaxe.createFactory(h)`

Creates a `hyperaxe` element factory for a given hyperscript implementation (`h`).
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var {createFactory, getFactory} = require('./factory')
var { createFactory, getFactory } = require('./factory')
var h = require('hyperscript')

module.exports = createFactory(h)
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"url": "https://github.com/ungoldman/hyperaxe/issues"
},
"dependencies": {
"html-tags": "^2.0.0",
"html-tags": "^3.0.0",
"hyperscript": "^2.0.2"
},
"devDependencies": {
"standard": "^10.0.3",
"standard-version": "^4.3.0",
"tap-spec": "^4.1.1",
"tape": "^4.8.0"
"standard": "^13.1.0",
"standard-version": "^7.0.0",
"tap-spec": "^5.0.0",
"tape": "^4.11.0"
},
"homepage": "https://github.com/ungoldman/hyperaxe#readme",
"keywords": [
Expand Down

0 comments on commit 09d5675

Please sign in to comment.