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 <email@example.com>
(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.