Add wildcard static route support
You want to have client-side processing of
GET arguments based on URL fragments.
For example, you want:
To both result in the serving of a static file called
process.html which carries out client-side parsing of the URL to customise its behaviour (client side) based on the argument it received (
Currently, you have to create a
.dynamic folder and use advanced routing (
routes.js) to handle this use case even though all processing takes place client-side. This is too much complexity for this use case so we should simplify it.
my-demo.site ╰─ .wildcard ╰─ process.html
- Create a
.wildcardfolder in your site root.
- Any static file you define here will receive all routes from that url-fragment down. In the above example,
https://…/process/any/thing/elsewill map to
If the file is in a sub-folder hierarchy, the wildcard routing will begin from the URL fragment derived from the file, not the subfolder(s).
e.g., In the case of the following folder hierarchy:
my-demo.site ╰─ .wildcard ╰─ section ╰─ process.html
https://…/section/process/any/thing/else will map to
https://…/section/some-other-route will map to
some-other-route defined elsewhere.