Rex::Template::NG(3)

πŸ“¦ version 1.14.3, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is the User Contributed Perl Documentation page for Rex::Template::NG(3), and the module itself is Rex::Template::NG β€” simple template engine (replacing Rex::Template) ✨

✨ SYNOPSIS ✨

bestie, here's the exact code vibe:

use Rex::Template::NG;

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

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

🌸 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. periodt πŸ’–

πŸ’… 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. "Unknown variable name $var on code line: ... line: ..."). no cap, it really tells you where the chaos is 😭✨

πŸŽ€ CONFIGURATION AND ENVIRONMENT πŸŽ€

nothing listed here on this page, bestie 🫢

πŸ¦‹ DEPENDENCIES πŸ¦‹

nothing listed here on this page, bestie 🫢

🌈 INCOMPATIBILITIES 🌈

nothing listed here on this page, bestie 🫢

πŸ’œ BUGS AND LIMITATIONS πŸ’œ

nothing listed here on this page, bestie 🫢


mwah πŸ’‹ β€” source/version: perl v5.42.3, date: 2023-08-05, and this is the Rex::Template::NG(3) manpage. bye bestie, go slay those templates 🫢✨

πŸ“¦ where this page comes from