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.
Custom pages let you e.g. create a
templates/pages/about.htmlpage 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?
Would capture any hits to
/museums/somethingand use that page to serve them.