Templer::Plugin::Perl - A simple inline-perl plugin
This class implements a formatter plugin for templer which allows inline code to be executed as the page is generated.
templer
This is carried out via the Text::Template module, and allows input such as this to be executed:
Title: This is my page format: perl name: Steve ---- <p>The sum of 1 + 1 is { 1 + 1 }.</p> <p>My name is { $name }</p>
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>
Copyright (C) 2012-2015 Steve Kemp <steve@steve.org.uk>.
This library is free software. You can modify and or distribute it under the same terms as Perl itself.
Constructor. No arguments are supported/expected.
This plugin is available if we've got the Text::Template module.
Format the given text.
To install App::Templer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Templer
CPAN shell
perl -MCPAN -e shell install App::Templer
For more information on module installation, please visit the detailed CPAN module installation guide.