[dancer-users] Who is using [%prefix%] in templates?
Nick Knutov
mail at knutov.com
Mon Sep 30 12:01:48 BST 2013
As for me - it's too long. May be it's better to write middleware
content filter and rewrite all absolute URLs?
30.09.2013 16:06, Alexis Sukrieh пишет:
> Hi,
>
> 2013/9/29 Henk van Oers <hvo.pm at xs4all.nl <mailto:hvo.pm at xs4all.nl>>
>
>
> I do. I have a hook:
>
> hook before_template => sub {
> my $tokens = shift;
> $tokens->{prefix} = prefix;
> };
>
>
> Hmm, should't it be better to use [% request.uri_base %] ?
--
Best Regards,
Nick Knutov
http://knutov.com
ICQ: 272873706
Voice: +7-904-84-23-130
More information about the dancer-users
mailing list