Replaces #528. I was just going off the features listed in the readme. There are a handful more we should test but this is a start.
Note that this includes a readme change for `state.href` that I believe was incorrectly documented. Let me know if I got that wrong.
Also note that we should delete the original `v6-tests` branch once this is merged. Leaving it for now for reference.
* Store mount selector and return `this`
This allows `.mount('body')` to be used on the server like so:
```js
module.exports = app.mount('body')
```
Then, when server rendering you can do:
```js
var app = require('./app')
fillServerTemplate(html, app.selector, app.toString('/'))
```
Where `fillServerTemplate` is a function that replaces the HTML at a
CSS selector with some string.
This way you do not need to check for `typeof window` in your
application entry point to do server rendering, and it allows tools like
bankai to automatically inline server rendered html in the correct place.
* docs
* better words
* add support for HTMLElement on choo.mount
- removed explicit "string" test and for selector variable, replaced by
"is available and filled" test
- add "if" to separate by incoming "string" or "HTMLElement"
* remove semicolons and white spaces
* add "is in Browser" check for HTMLElement
* add window to HTMLElement
* optimizing "mount" commit
* remove window.HTMLElement check
* change .mount documentation
- add info that selector can be also a DOM element
- remove "nanomount" infos
* add missing line
* become prototype based
upgrade to new nanobus
remove nanohistory
add nanotiming
remove nanomount
move newTree to next tick
upgrade timing API
add more node warnings to .start/.mount
add morph timing
pass app instance to .use()
self-clearing async-timing
clean up timings
better mount error
fix mount bug
de-prototype helper functions
update to latest nanotiming
upgrade to nanotiming 5
update nanotiming
add toString asserts
more assertions
add event based tracing
expose createlocation
assert return types from render to always be the same
add navigate event
expose route on state
expose events
update uglify
use scroll-to-anchor
update nanobus
document events
update docs
more docs
changelog v6
upgrade nanomorph
fixup! neatify morph assertions
update bel dep
add popstate docs to changelog
* expose events on state
* upgrade deps
* chaning location:setLocation to location: set
I believe this is how the v4 api is supposed to be used
* adding note about :params
I had a hard time locating this information, and I feel like it's pretty crucial when using a router.