gudu.core documentation
Segment
A segment defines the way to map between pieces and params.
A routing configuration is defined as segments.
int-segment
A segment that matches integers.
join-pieces
(join-pieces pieces context)
Create a URL from a collection of URL pieces.
match
(match segment pieces)
# Segment Matching - creating params (from URL pieces)
Given a routing configuration (defined as a top level segment),
create a params collection from the URL pieces.
process
(process segment params)
# Segment Processing - constructing URL pieces (from params)
Given a routing configuration (defined as a top level segment),
create the URL pieces from a params collection.
root
A segment that matches the root URL.
split-url
(split-url url)
Create a collection of URL pieces from a URL.
string-segment
A segment that matches any string.