Template::Plugin::SafeInclude - TT Plugin to safe include
[% USE SafeInclude %] [% SafeInclude.inc('your_include_file.html') %]
verbose mode.
[% USE SafeInclude(verbose => 1) %] [% SafeInclude.inc('not_found_file.html') %]
output.
<!-- file error - not_found_file.html: not found -->
with params.
[% USE SafeInclude(verbose => 1) %] [% SafeInclude.inc('not_found_file.html', { foo => 1, bar => 2 }) %]
this module don't die even if template fail in including.
use the verbose option when you want to know include failure.
[% USE SafeInclude(verbose => 1) %] <!-- file error - xxx.html: not found -->
when including succeeded, nothing is output.
safe include.
Template
yuya matsumoto <yumatsumo at cpan.org>
<yumatsumo at cpan.org>
syushi matsumoto <matsumoto at cpan.org>
<matsumoto at cpan.org>
To install Template::Plugin::SafeInclude, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::SafeInclude
CPAN shell
perl -MCPAN -e shell install Template::Plugin::SafeInclude
For more information on module installation, please visit the detailed CPAN module installation guide.