Jan Gehring > Rex-Template-TT-0.33.1 > Rex::Template::TT

Download:
Rex-Template-TT-0.33.1.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.33.1   Source  

NAME ^

Rex::Template::TT - Use Template::Toolkit with Rex

DESCRIPTION ^

This module enables the use of Template::Toolkit for Rex Templates.

USAGE ^

Just include the file into your Rexfile.

 # Rexfile
 use Rex::Template::TT;
    
 task prepare => sub {
    
    file "/a/file/on/the/remote/machine.conf",
       content => template("path/to/your/template.tt", 
                              var1  => $var1,
                              arr1  => \@arr1,
                              hash1 => \%hash1,
                          );
                       
 };
syntax highlighting: