Template::Plugin::IO::All - IO::All + Template
[% USE IO.All %] [% file = IO.All.new('some_file') %] [% file.all %] [% FOREACH line = file.getlines %] [% line %] [% END %] [% file.11 %] # Return the 11st line [% dir = IO.All.new('some_dir/') %] [% FOREACH entry = d.all %] [%- entry %] [% END %]
Nothing much to explain. It's IO::All plugin for Template. Fun and easy!
Yung-chung Lin (a.k.a. xern) <xern@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself
IO::All, Template::Plugin
To install Template::Plugin::IO::All, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::IO::All
CPAN shell
perl -MCPAN -e shell install Template::Plugin::IO::All
For more information on module installation, please visit the detailed CPAN module installation guide.