examples/router/README.md
A blog all about yew. The best way to figure out what this example is about is to just open it up. It's mobile friendly too!
This example involves many different parts, here are just the Yew specific things:
yew-router to render and switch between multiple pages.The example automatically adapts to the --public-url value passed to Trunk.
This allows it to be hosted on any path, not just at the root.
For example, our demo is hosted at /router.
This is achieved by adding <base data-trunk-public-url /> to the index.html file.
Trunk rewrites this tag to contain the value passed to --public-url which can then be retrieved at runtime.
Take a look at Route for the implementation.
/) should include links to the post list and the author introduction--public-url value passed to Trunk. See: thedodd/trunk#51Run this application with the trunk development server:
trunk serve --open
Content generation can take up quite a bit of time in debug builds. If it is too slow, you should try running with the release profile.