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

NAME

6       Rex::Template - Simple Template Engine.
7

DESCRIPTION

9       This is a simple template engine for configuration files.
10

SYNOPSIS

12        my $template = Rex::Template->new;
13        print $template->parse($content, \%template_vars);
14

EXPORTED FUNCTIONS

16   is_defined($variable, $default_value)
17       This function will check if $variable is defined. If yes, it will
18       return the value of $variable, otherwise it will return $default_value.
19
20       You can use this function inside your templates.
21
22        ServerTokens <%= is_defined($::server_tokens, "Prod") %>
23
24
25
26perl v5.30.0                      2019-07-24                  Rex::Template(3)
Impressum