Closed Ogeon closed 9 years ago
The terminology surrounding this has started to feel a bit odd, now when wildcards have become variables as well. It may be time to consider using better names for these things.
The new names are "variable segment" and "variable sequence". This may still change if better names appear before this is merged.
@homu r+
:pushpin: Commit b387c57 has been approved by Ogeon
:hourglass: Testing commit b387c57 with merge fbcb25d...
This allows wildcards in
TreeRouter
to be named (e.x.head/*tail
) and sent to the handler as variables. The purpose of this is to allow entire sections of the requested path to be captured as easy as individual segments currently is. This is very useful for requesting static files (see the updatedhandler_storage
example).Wildcards are also renamed to "variable sequences" and standard variables are now called "variable segments". Some occurrences of the old terminology will, however, still be used in internal parts for a while longer.
These changes are breaking if a project uses the LinkSegment type, or if it relies on nameless variables being available to the handler.