Skip to content
Kirby Starter

Navigation & State

Taxi loads each page without a full browser refresh. Alpine resets page-specific interactions while shared controls keep their state.

This page's counter

Resets when you leave

00

Try it out

  1. 01Increase this counter and the counter at the bottom of the page.
  2. 02Navigate to another page.
  3. 03Return here. This counter resets while the shared counter keeps its value.
Next example

Implementation / Navigation

How it works

Taxi removes the current page before Alpine clears its state. Alpine then starts the interactions on the next page.

  • assets/scripts/app.js

    Taxi setup and accessibility options.

  • assets/scripts/renderers/DefaultRenderer.js

    Coordinates each page change.

  • assets/scripts/plugins/AlpinePlugin.js

    Starts and clears Alpine interactions.