A route shows its children while the address matches its pattern. Addresses live after the #, so any static host, and a file opened from disk, serves them. This page has real routes of its own under /language/routes.
Where the page is
route.pathThe current address, reactive: anything that reads it is drawn again when it changes.
route.path
/language/routes/mercury
route.path.split("/")language › routes › mercuryroute.path.startsWith("/language")truein the address bar#/language/routes/mercury
link, go(), back()link "About" href="/about" is an anchor to that address; go("/about") does the same from logic; back() is the browser's back.
route "/language/routes/:id"A part that starts with a colon takes whatever stands there, and is a string of that name in scope under the route. Pick a planet: the address changes, and the route below shows what it names.
route "/language/routes/:id" matched, with id = "mercury"
Mercuryrock · 0 moons · a day of 59 days
A group, and route "*"Routes in a row are one group: the first that matches is shown, and route "*" is anything else. This group knows two addresses by heart.
What a route builds, it removesA route's children are built when it matches and built again when its :values change; their state, tasks and timers go with them. This page sits under such a route, so a task in it runs on every arrival.
1times this page has been built
the last addresses it was built for
/language/routes/mercury
State declared inside the page starts afresh each time; the trail above is state at the top of the file.