Skip to content
This repository
tag: v1.122
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 47 lines (25 sloc) 1.057 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
                                TODO

            
            This is the roadmap of upcoming developments

* Route caching support

    When a path is firstly resolved through the route tree, we should
    cache the result for future calls.

    The path would be the cache key, the first route the value.

        1 - GET / -> first call, so browse the route tree
        2 - GET / -> second call, return cache('/');

* Conditions support for route matching:

    get '/foo', {agent => 'Songbird (\d\.\d)[\d\/]*?'} => sub {
        ...
    };

* Prefix support

Could be great to be able to define a prefix path for each
route hanlder defined then.

Would work like the following:

prefix '/home';

# any route handler and before filter is applied to /home/*

get '/page1' => sub { }; # will match '/home/page1';

prefix undef;
# no more prefix

get '/page1' => sub { }; # will match /page1

And that should also work for before filters:

prefix '/home';
before sub { must_be_authenticated }; # this filter only applies to /home/* paths



Something went wrong with that request. Please try again.