[Catalyst] post processing filter in Catalyst apps
Rajesh Kumar Mallah
mallah at redgrape.tech
Sun Feb 19 19:44:44 GMT 2017
Hi ,
I was able to do so in Controller/Root.pm
sub end : Private {
my ($self, $c) = @_;
$c->forward('render') unless $c->res->output ;
$c->fillform($c->stash->{fillindata}) ;
>>>> my $body = $c->response->{body};
>>>> $body =~ s#/static/#/static/ver8291/#g ;
>>>> $c->response->output($body);
}
Thanks.
Regds
mallah.
>
> Dear Catalyst Users ,
>
>
> What would be a good place to post process the HTML output from
> View (TT in my case).
>
> I would want to replace all static urls with a url bearing version.
> eg
> /static/images/logo-1.png should become
> /static/ver8922/images/logo-1.png
>
>
> i cannot use uri_for in templates as our frontend designers also
> work on the same files and load them in a non-catalyst environment.
> (using apache on windows).
>
> Regds
> mallah.
>
>
>
>
More information about the Catalyst
mailing list