Routing
Routing is path based and inspired by Next.js.
Here’s the basic structure of a potential blog application:
app/root.cssroot.hamlcomponents/Layout/Footer.hamlHeader.hamlLayout.hamlPage.haml
UI/Button.hamlHeading.hamlHr.hamlLink.haml
pages/about/page.haml
posts/:id/page.haml
page.hamllayout.haml
page.hamllayout.haml
app/root.haml contains the <html> tag, and all pages are wrapped in
the layouts of their parent directories.
This tree would generate the following routes:
/posts/:id/posts/about/