Simon Wistow > Template-Plugin-ShellQuote > Template::Plugin::ShellQuote

Download:
Template-Plugin-ShellQuote-1.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.3   Source  

NAME ^

Template::Plugin::ShellQuote - provides a Template Toolkit filter to shell quote text

SYNOPSIS ^

    [% 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 ) %]

DESCRIPTION ^

Really quite easy. Basically just provides a simple filter so that you can easily create shell scripts using the Template Toolkit.

AUTHOR ^

Simon Wistow <simon@thegestalt.org>

COPYING ^

(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.

BUGS ^

None known.

SEE ALSO ^

String::ShellQuote, Template::Plugin::Filter

syntax highlighting: