Newcomen

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

Index


NAME ^

Newcomen::Plugin::Rewrite::Prefix - Set a common prefix for all page targets.

DESCRIPTION ^

This plugin may be used to set a common prefix for all page targets. The prefix will be added late (!) during the hook_rewrite_target() hook, see HOOKS.

OPTIONS ^

{
   'rewrite'   => {
      'prefix' => '',
   },
}

These are the default options set by this plugin. They may be overridden by user configuration.

The rewrite/prefix option specifies the prefix for all page targets. By default, this is an empty string. It may be set to any string, and the value will be prepended to the page targets, without any separator. The value undef will be treated as an empty string.

HOOKS ^

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

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/>.