Rex::Template(3pm) | User Contributed Perl Documentation | Rex::Template(3pm) |
Rex::Template - Simple Template Engine.
This is a simple template engine for configuration files.
my $template = Rex::Template->new; print $template->parse($content, \%template_vars);
This function will check if $variable is defined. If yes, it will return the value of $variable, otherwise it will return $default_value.
You can use this function inside your templates.
ServerTokens <%= is_defined($::server_tokens, "Prod") %>
2018-02-01 | perl v5.26.1 |