Chronicle::Plugin::Snippets::Meta - Make meta information available to templates
This module makes some meta-information available to chronicle templates, which includes:
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' -->.
Now follows documentation on the available methods.
The on_initiate method is automatically invoked just before any on_generate methods which might be present.
on_initiate
on_generate
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).
chronicle_version
build_date
build_time
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".
Stuart Skelton
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.