v0.3.0 — A better router component
Pre-release
Pre-release
Upgrade nodes:
Massive changes were made to how things render to support children by maintaining a component stack and render stack. Now the router component accepts children instead of a 'render' attribute. Unlike before, children are only rendered when there is a children tag in a component.
Thus this:
<router method="GET" path="/" render="<MyComponent></MyComponent>"></router>now becomes:
<router method="GET" path="/">
<MyComponent></MyComponent>
</router>Known issues
- custom self-closing tags is technically a violation of html5 and trying to render them is an issue at the moment. You will see notices when trying to use them.
What's Changed
- Fix tests by @withinboredom in #27
- Refactor router component by @withinboredom in #28
- check shouldRender() at last second by @withinboredom in #29
Full Changelog: v0.2.1...v0.3.0