Skip to content

v0.3.0 — A better router component

Pre-release
Pre-release

Choose a tag to compare

@withinboredom withinboredom released this 13 Mar 09:03
· 76 commits to main since this release
v0.3.0

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

Full Changelog: v0.2.1...v0.3.0