Chronicle::Plugin::PostSpooler - Autopost entries in the future.
This plugin is designed to allow new posts to be scheduled automatically.
Rather than writing a post with a date: header you should instead write a post with a publish: header. When such a post is found it will be added to the blog only if the publish-date is in the past.
date:
publish:
This allows you to write a post such as the following, confident it will not be included until the target date is reached:
Publish: 10th March 2076 Subject: I'm a 100 years old Tags: life, birthday, fiction <p>Hello, I am old.</p>
Now follows documentation on the available methods.
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.
on_insert
The method is designed to return an updated blog-post structure, after performing any massaging required. If the method returns undef then the post is not inserted.
If the post we're being invoked upon does not contain a publish header then this plugin will do nothing.
publish
If there is such a header the post will be ignored unless that header is in the past - if the post refers to a future time it will be skipped.
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".
Steve Kemp <steve@steve.org.uk>
To install App::Chronicle, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Chronicle
CPAN shell
perl -MCPAN -e shell install App::Chronicle
For more information on module installation, please visit the detailed CPAN module installation guide.