Site / Site and the Router
Site and Foldkit's Router
Once an application has more than a handful of screens, the router stops being the hard part. You still need breadcrumbs, a nav that highlights the current section, page titles, keyboard shortcuts, a sitemap, and a rule for when a link adds a Back step. Each of those gets written by hand around the router, and each drifts when a route moves.
Foldkit's Router answers one question: which route value is this URL, and which
URL is this route value. foldkit-site keeps that Router and adds a tree on
top. Every node of a Site is a Foldkit Router plus a title, a parent and a few
annotations, so the questions about what surrounds a page are answered from the
same place the address is.
This page says where the line between them falls, what the Site does with each question it answers, and how it does it.