Rex::Template::NG - simple template engine (replacing Rex::Template)
Contents
Bugs And Limitations
perl v5.40.0 2025-02-06 Rex::Template::NG(3pm)
Configuration And Environment
Dependencies
Description
This is intended as a replacement of the original Rex::Template, therefore its interface and syntax are
identical. The main differences are:
• produces "more correct" output in case when comping is required
• gives better diagnostics in case of errors
It is recommended to use this module instead of Rex::Template.
Diagnostics
It prints the whole template as "INFO" level messages, and then a message about the problem with its
context and line number (e.g. "Unknownvariablename$varoncodeline:...line:...").
Incompatibilities
Name
Rex::Template::NG - simple template engine (replacing Rex::Template)
Synopsis
use Rex::Template::NG;
my $template = Rex::Template->new;
print $template->parse($content, \%template_vars);
print $template->parse($content, @template_vars);
