This is the home page.

This is the demo application for Elegua v2.2.3, a Svelte SPA router library.

This is a static route.

Error route (route="*" - non-existing path); should display error page:

Error

$path testing

Current $path is: /

$url.set() testing - goto to '/blog'

goto() testing

history.replaceState() testing

Will change browser url, but not actually refresh pages - just a default DOM api, no magic here

Native data routing (skips Elegua)

To prevent Elegua from handling a link, and let the native browser route it, set the data-native-router attribute in the anchor:

<a href="/blog" data-native-router>Blog</a>

Example: Blog