You might be looking for the Dancer::Request method path. You get at a Dancer::Request object via request.
# in app.pl hook before_template_render => sub { my $tokens = shift; # Make the path available in every template. $tokens->{current_route} = request->path; }; # in views/layouts/main.tt <p>Route: <% current_route %></p>
Anything more elaborate than what I did, you'll probably want to create a custom helper.
In reply to Re: current route of perl dancer
by webfiend
in thread current route of perl dancer
by lightoverhead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |