Templer::Plugin::Dollar - A simple shell-like syntax for template variables.
This class implements a layout template filter plugin for templer which allows template variables to be included using a dollar sign followed by an open brace, the variable name and a closing brace.
templer
This allows template such as this to be used
<html> <head> <title>${title escape="html"}</title> <meta name='author' content='${author} ${email escape=url}'/> </head> <body> </body> </html>
Everything between the variable name and the closing brace is used as is in the transformation. The third line of the example is for instance transformed as
<title><tmpl_var name="title" escape="html"></title>
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".
Bruno Beaufils <bruno@boulgour.com>
Copyright (C) 2015 Bruno Beaufils <bruno@boulgour.com>.
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 always available.
Filter the given template.
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.