1Rex::Template::NG(3)  User Contributed Perl Documentation Rex::Template::NG(3)
2
3
4

NAME

6       Rex::Template::NG - simple template engine (replacing Rex::Template)
7

SYNOPSIS

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

DESCRIPTION

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

DIAGNOSTICS

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

CONFIGURATION AND ENVIRONMENT

DEPENDENCIES

INCOMPATIBILITIES

BUGS AND LIMITATIONS

36perl v5.34.0                      2021-07-21              Rex::Template::NG(3)
Impressum