GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Rex::Template::NG(3) User Contributed Perl Documentation Rex::Template::NG(3)

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

 use Rex::Template::NG;

 my $template = Rex::Template->new;

 print $template->parse($content, \%template_vars);
 print $template->parse($content, @template_vars);

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.

It prints the whole template as "INFO" level messages, and then a message about the problem with its context and line number (e.g. "Unknown variable name $var on code line: ... line: ...").

2021-07-05 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.