NAME
Chronicle::Plugin::Snippets::Meta - Make meta information available to templates
DESCRIPTION
This module makes some meta-information available to chronicle templates, which includes:
- The date the blog was (re)built.
- The time the blog was (re)built.
- The version of chronicle.
- The hostname of the system which built the blog.
- The username of the builder.
These values can be used in templates like so:
This Blog was generated by Chronicle version
<!-- tmpl_var name='chronicle_version' --> on
<!-- tmpl_var name='build_date' --> at
<!-- tmpl_var name='build_time' -->.
METHODS
Now follows documentation on the available methods.
on_initiate
The on_initiate
method is automatically invoked just before any on_generate
methods which might be present.
This method updates the global variables, which are made available to all loaded templates to define meta variables such as chronicle_version
containing the current release number, and build_date
and build_time
containing the date and time of when the blog was (re)build (respectivley).
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