Newcomen

Description A static content generator.
Newcomen > Perl Modules > Newcomen::Plugin::Rewrite::Clean
Source

Index


NAME ^

Newcomen::Plugin::Rewrite::Clean - Clean up page targets.

DESCRIPTION ^

This plugin will clean up the page targets. It will first split the supplied target at slashes, ignoring any empty parts (!). Then, for every singe part of the split string, the following rules will be applied:

If a part should be empty after these steps, this plugin will die(). If all parts are cleaned up, the rewritten target will be the single cleaned up parts joined with slash as separator.

HOOKS ^

This plugin implements the hook_rewrite_target() hook (default priority).

SEE ALSO ^

Newcomen::Page

VERSION ^

This is version 2014052501.

AUTHOR ^

Stefan Goebel - newcomen {at} subtype {dot} de

COPYRIGHT AND LICENSE ^

Copyright 2013-2014 Stefan Goebel.

This file is part of Newcomen.

Newcomen is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the license, or (at your option) any later version.

Newcomen is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Newcomen. If not, see <http://www.gnu.org/licenses/>.