-
-
Notifications
You must be signed in to change notification settings - Fork 813
Closed
Milestone
Description
Custom pages let you e.g. create a templates/pages/about.html page and have it automatically served at /about.
It would be useful if these pages could capture path patterns. I like the Python format string syntax for this (also used by Starlette): /foo/bar/{slug}.
So... how about embedding those patterns in the filenames themselves?
templates/pages/museums/{slug}.html
Would capture any hits to /museums/something and use that page to serve them.
Reactions are currently unavailable