Use Template::Toolkit with Rex
Perl
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Rex/Template
t
.gitignore
MANIFEST
MANIFEST.SKIP
Makefile.PL
README.pod

README.pod

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

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,
                         );
                      
};