Search⌘ K
AI Features

Flexible Filesystem-Based Routing

Explore how to implement flexible filesystem-based routing using Sapper within a backend setup. Understand how static route files manage fixed paths and how dynamic parameters create customizable, data-driven pages for scalable web applications.

Sapper’s flexible filesystem-based routing provides us with the following two types of parameters:

  1. Static parameters
  2. Dynamic parameters

Static parameters

To render an /​about​ page, you can create either of the following two Svelte files using​ the conventionally defined route src/routes:

  • src/routes/about.svelte
  • src/routes/about/index.svelte

The behavior of ​ ...