Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Use Template::Toolkit with Rex

branch: master

Merge pull request #1 from dsteinbrunner/patch-1

correct Makefile NAME
latest commit 4dcc5ddab2
Jan Gehring authored August 16, 2013
Octocat-spinner-32 lib fixed pod October 03, 2012
Octocat-spinner-32 t inital commit September 22, 2012
Octocat-spinner-32 .gitignore inital commit September 22, 2012
Octocat-spinner-32 MANIFEST added manifest September 22, 2012
Octocat-spinner-32 MANIFEST.SKIP inital commit September 22, 2012
Octocat-spinner-32 Makefile.PL correct Makefile NAME August 16, 2013
Octocat-spinner-32 README.pod added docs September 22, 2012
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,
                          );
                       
 };
Something went wrong with that request. Please try again.