4 Dec
2013
4 Dec
'13
12:26 a.m.
On 13-12-03 07:23 AM, Matt Mallard wrote:
get '/l/*/*' => sub { my ($lang, $page) = splat;
template ("$lang/$page"); };
It's a bit ugly though...
Just for giggles, the megasplat can also used to make the whole thing a little less painful. Funnily enough, the Perl Advent entry of yesterday features an example that is very close to that very use case: http://www.perladvent.org/2013/2013-12-02.html Joy, `/anick