table of contents
other versions
- buster 1.6.0-1
- buster-backports 1.12.2-1~bpo10+1
- testing 1.13.2-1
- unstable 1.13.3-1
Rex::Template(3pm) | User Contributed Perl Documentation | Rex::Template(3pm) |
NAME¶
Rex::Template - Simple Template Engine.DESCRIPTION¶
This is a simple template engine for configuration files.SYNOPSIS¶
my $template = Rex::Template->new; print $template->parse($content, \%template_vars);
EXPORTED FUNCTIONS¶
is_defined($variable, $default_value)¶
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") %>
2020-09-18 | perl v5.28.1 |