 舌尖上的牛氓  > Rex-Template-Mojo-1.0 > Rex::Template::Mojo

Download:
Rex-Template-Mojo-1.0.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 1.0   Source  

NAME ^

Rex::Template::Mojo - Use Mojo::Template with Rex

DESCRIPTION ^

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

USAGE ^

Just include the file into your Rexfile.

 # Rexfile
 use Rex::Template::Mojo;
    
 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: