Routes::Tiny::Pattern - Routes pattern
my $pattern = Routes::Tiny::Pattern->new(
pattern => '/:foo/:bar',
defaults => {bar => 'index'},
name => 'route'
);
my $match = $pattern->match('/hello/world');
my $path = $pattern->build_path('route', foo => 'hello', bar => 'world');
Routes::Tiny::Pattern is an Object that incapsulates pattern matching and path
building.
Pass default values for captures.
Pass arbitrary arguments.
my $pattern = Routes::Tiny::Pattern->new;
Create new instance of Routes::Tiny::Pattern.
Match pattern agains a path.
$pattern->build_path('name', {foo => 'bar'});
Build path from a given name and params.