Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rexops/rex-template-tt
Evaluate Rex templates using Template::Toolkit
https://github.com/rexops/rex-template-tt
hacktoberfest perl rex rexify template
Last synced: 3 days ago
JSON representation
Evaluate Rex templates using Template::Toolkit
- Host: GitHub
- URL: https://github.com/rexops/rex-template-tt
- Owner: RexOps
- Created: 2021-04-12T18:25:11.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-05T19:42:05.000Z (over 3 years ago)
- Last Synced: 2024-11-09T18:26:02.791Z (about 2 months ago)
- Topics: hacktoberfest, perl, rex, rexify, template
- Language: Perl
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
Awesome Lists containing this project
README
# 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.- Nicolas Leclercq
- Jan Gehring# CONTRIBUTORS
- Erik Huelsmann
# SEE ALSO
- [Template](https://metacpan.org/pod/Template)
- [Rex](https://metacpan.org/pod/Rex)
- [http://www.template-toolkit.org/](http://www.template-toolkit.org/)# LICENSE
The Apache License, Version 2.0, January 2004