NAME

Template::Flute::UriAdjust - URI adjust class for Template::Flute

SYNOPSIS

    $new_path = Template::Flute::UriAdjust->new(
                   uri => 'test',
                   adjust => '/t/',
                );

DESCRIPTION

Adjusts relative URIs to a base path.

ATTRIBUTES

adjust

Base path.

uri

URI to be adjusted.

scheme

URI scheme (defaults to http).

METHODS

result

Returns new URI if it has adjusted. Otherwise it returns undef.

AUTHOR

Stefan Hornburg (Racke), <racke@linuxia.de>

LICENSE AND COPYRIGHT

Copyright 2014-2016 Stefan Hornburg (Racke) <racke@linuxia.de>.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.