1Rex::Template::NG(3) User Contributed Perl Documentation Rex::Template::NG(3)
2
3
4
6 Rex::Template::NG - simple template engine (replacing Rex::Template)
7
9 use Rex::Template::NG;
10
11 my $template = Rex::Template->new;
12
13 print $template->parse($content, \%template_vars);
14 print $template->parse($content, @template_vars);
15
17 This is intended as a replacement of the original Rex::Template,
18 therefore its interface and syntax are identical. The main differences
19 are:
20
21 · produces "more correct" output in case when comping is required
22
23 · gives better diagnostics in case of errors
24
25 It is recommended to use this module instead of Rex::Template.
26
28 It prints the whole template as "INFO" level messages, and then a
29 message about the problem with its context and line number (e.g.
30 "Unknown variable name $var on code line: ... line: ...").
31
36perl v5.32.1 2021-03-06 Rex::Template::NG(3)