Commit b3e2feb620b8617e72d7d07a600aea220c8b0992
fix hyps html usage
Michael Williams committed on 3/7/2017, 2:07:08 AMParent: b46e0b142a1031b865be6f4aa908bb84a8354dc2
Files changed
app/html.js | changed |
app/router.js | changed |
app/html.js | ||
---|---|---|
@@ -3,9 +3,9 @@ | ||
3 | 3 … | document = require('global/document') |
4 | 4 … | } |
5 | 5 … | |
6 | 6 … | const nest = require('depnest') |
7 | -const create = require('hyps/h') | |
7 … | +const create = require('hyps/createElement') | |
8 | 8 … | const update = require('morphdom') |
9 | 9 … | const H = require('@skatejs/val') |
10 | 10 … | const Hx = require('hyperx') |
11 | 11 … |
app/router.js | ||
---|---|---|
@@ -3,12 +3,12 @@ | ||
3 | 3 … | module.exports = { |
4 | 4 … | router: require('inu-router').modules.router, |
5 | 5 … | routeNotFound: { |
6 | 6 … | gives: nest('inu.route'), |
7 | - needs: nest('html.create', 'first'), | |
7 … | + needs: nest('html.hx', 'first'), | |
8 | 8 … | create: (api) => nest('inu.route', () => [ |
9 | 9 … | ['/404', (model) => { |
10 | - return api.html.create` | |
10 … | + return api.html.hx` | |
11 | 11 … | <div>page not found</div> |
12 | 12 … | ` |
13 | 13 … | }] |
14 | 14 … | ]) |
Built with git-ssb-web