From 5396036fe869da60d8d1a0413ae6960dda3055b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20T=C3=B6rnqvist?= Date: Wed, 1 Aug 2018 12:32:36 +0200 Subject: [PATCH] Remove references to bel (#678) Fixes example todo app --- README.md | 3 --- example/components/footer/clear-button.js | 2 +- example/components/footer/filter-button.js | 2 +- example/components/footer/index.js | 2 +- example/components/header.js | 2 +- example/components/info.js | 2 +- example/components/todos/index.js | 2 +- example/components/todos/todo.js | 2 +- example/views/main.js | 2 +- test.js | 2 +- 10 files changed, 9 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3c49d36..e3bde79 100644 --- a/README.md +++ b/README.md @@ -597,8 +597,6 @@ $ npm install choo - [bankai](https://github.com/choojs/bankai) - streaming asset compiler - [stack.gl](http://stack.gl/) - open software ecosystem for WebGL - [yo-yo](https://github.com/maxogden/yo-yo) - tiny library for modular UI -- [bel](https://github.com/shama/bel) - composable DOM elements using template - strings - [tachyons](https://github.com/tachyons-css/tachyons) - functional CSS for humans - [sheetify](https://github.com/stackcss/sheetify) - modular CSS bundler for @@ -689,7 +687,6 @@ Become a backer, and buy us a coffee (or perhaps lunch?) every month or so. [nanocomponent]: https://github.com/choojs/nanocomponent [nanolru]: https://github.com/s3ththompson/nanolru [bankai]: https://github.com/choojs/bankai -[bel]: https://github.com/shama/bel [nanohtml]: https://github.com/choojs/nanohtml [browserify]: https://github.com/substack/node-browserify [budo]: https://github.com/mattdesl/budo diff --git a/example/components/footer/clear-button.js b/example/components/footer/clear-button.js index ba63240..2aaedf9 100644 --- a/example/components/footer/clear-button.js +++ b/example/components/footer/clear-button.js @@ -1,4 +1,4 @@ -var html = require('bel') +var html = require('nanohtml') module.exports = deleteCompleted diff --git a/example/components/footer/filter-button.js b/example/components/footer/filter-button.js index f37003b..ce6d500 100644 --- a/example/components/footer/filter-button.js +++ b/example/components/footer/filter-button.js @@ -1,4 +1,4 @@ -var html = require('bel') +var html = require('nanohtml') module.exports = filterButton diff --git a/example/components/footer/index.js b/example/components/footer/index.js index 3645a80..a627720 100644 --- a/example/components/footer/index.js +++ b/example/components/footer/index.js @@ -1,5 +1,5 @@ var Component = require('../../../component') -var html = require('bel') +var html = require('nanohtml') var clearButton = require('./clear-button') var filterButton = require('./filter-button') diff --git a/example/components/header.js b/example/components/header.js index ff682d4..e3783d7 100644 --- a/example/components/header.js +++ b/example/components/header.js @@ -1,5 +1,5 @@ var Component = require('../../component') -var html = require('bel') +var html = require('nanohtml') module.exports = class Header extends Component { constructor (name, state, emit) { diff --git a/example/components/info.js b/example/components/info.js index f1b917c..bd4f232 100644 --- a/example/components/info.js +++ b/example/components/info.js @@ -1,5 +1,5 @@ var Component = require('../../component') -var html = require('bel') +var html = require('nanohtml') module.exports = class Info extends Component { update () { diff --git a/example/components/todos/index.js b/example/components/todos/index.js index 7dbfd3a..7fc0c1a 100644 --- a/example/components/todos/index.js +++ b/example/components/todos/index.js @@ -1,5 +1,5 @@ var Component = require('../../../component') -var html = require('bel') +var html = require('nanohtml') var Todo = require('./todo') diff --git a/example/components/todos/todo.js b/example/components/todos/todo.js index 231e3ac..69f25df 100644 --- a/example/components/todos/todo.js +++ b/example/components/todos/todo.js @@ -1,4 +1,4 @@ -var html = require('bel') +var html = require('nanohtml') module.exports = Todo diff --git a/example/views/main.js b/example/views/main.js index 67d7454..51135c4 100644 --- a/example/views/main.js +++ b/example/views/main.js @@ -1,4 +1,4 @@ -var html = require('bel') // cannot require choo/html because it's a nested repo +var html = require('nanohtml') // cannot require choo/html because it's a nested repo var Header = require('../components/header') var Footer = require('../components/footer') diff --git a/test.js b/test.js index a8880d4..62b8729 100644 --- a/test.js +++ b/test.js @@ -5,7 +5,7 @@ var html = require('./html') var raw = require('./html/raw') var choo = require('./') -tape('should render on the server with bel', function (t) { +tape('should render on the server with nanohtml', function (t) { var app = choo() app.route('/', function (state, emit) { var strong = 'Hello filthy planet'