GithubHelp home page GithubHelp logo

rex-template-tt's Introduction

NAME

Rex::Template::TT - A module to process templates with template toolkit.

VERSION

version 1.0.0

SYNOPSIS

use Rex::Template::TT;

task "blah", sub {
  file "/tmp/blah",
       content    => template("path/to/blah.template",
                                      { persons => ['bob', 'alice'] }),
       owner     => "root",
       group     => "root",
       mode      => 644
};

# to use as a default template engine
# this will make the template() function use TemplateTookit to render
# all the templates. This will also register all the known template variables
# like hostname, eth0_ip and so on.
use Rex::Ext::TemplateTookkit ':register';

DESCRIPTION

A Rex extension module to process templates with template toolkit.

AUTHORS

This module in its current publication is written by Nicolas Leclerq, based on prior work by Jan Gehring. The original version by Nicolas was published through the now-defunct Rex Recipes. Since Nicolas's version ended up being more feature-rich than Jan's, Jan gave permission to overwrite his version with Nicolas's.

CONTRIBUTORS

SEE ALSO

LICENSE

The Apache License, Version 2.0, January 2004

rex-template-tt's People

Contributors

ehuelsmann avatar ferki avatar

Watchers

 avatar  avatar

rex-template-tt's Issues

Processing continues even on template expansion error

@ferki does it make sense to log an error from the Template library simply on the "info" level (and continuing)?

|| Rex::Logger::info( $template->error(), 'error' );

On a related note: https://rt.cpan.org/Ticket/Display.html?id=111355 suggests that the template comes back empty on error, meaning that we really should not be overwriting the target and simply should be aborting the entire operation, meaning "log+die". Agreed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.