Template::Plugin::ShellQuote - provides a Template Toolkit filter to shell quote text
[% USE ShellQuote %] #!/bin/sh [% FILTER shellquote %] all this text & this text also *this* text will be quoted suitable for putting in a shell script [% END %] # this will do what you expect [% somevar FILTER shellquote %] # suitably quote stuff for a comment ./some_command # Some comment [% somevar FILTER shellquote (comment => 1 ) %]
Really quite easy. Basically just provides a simple filter so that you can easily create shell scripts using the Template Toolkit.
Simon Wistow <simon@thegestalt.org>
(c)opyright 2003, Simon Wistow
Distributed under the same terms as Perl itself.
This software is under no warranty whatsoever and will probably ruin your life, kill your friends, burn down your house and bring about the apocalypse.
None known.
String::ShellQuote, Template::Plugin::Filter
To install Template::Plugin::ShellQuote, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::ShellQuote
CPAN shell
perl -MCPAN -e shell install Template::Plugin::ShellQuote
For more information on module installation, please visit the detailed CPAN module installation guide.