The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Chronicle::Plugin::InPlacePosts - maintains the input directory structure.

DESCRIPTION

This plugin is designed to allow blog entries remain in the same directory structure as the input folder by adding the config entry_inplace.

The default behaviour of chronicle is to flatten any posts present in the input folder to the http doc root, however this plugin sets to replicate the input folder stucture.

input/ 2015/ June/ 15/ A_post.post

output/ 2015/ June/ 15/ A_post.html

See also Chronicle::Plugin::Archived.

METHODS

Now follows documentation on the available methods.

on_insert

The on_insert method is automatically invoked when a new blog post must be inserted into the SQLite database, that might be because a post is new, or because it has been updated.

The method is designed to return an updated blog meta-data, after performing any massaging required.

If within the config has entry_inplace = 1 the posts link meta-data is changed to reflect the users intent to retain the posts input location.

LICENSE

This module is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version, or

b) the Perl "Artistic License".

AUTHOR

Stuart Skelton