Subject: | Man page mistake |
Date: | Thu, 14 Jun 2012 16:44:31 +0400 |
To: | bug-Excel-Template-Plus [...] rt.cpan.org |
From: | NB <netbyka [...] gmail.com> |
At man page for Excel::Template::Plus we can see examle:
======================
my $template = Excel::Template::Plus->new(
engine => 'TT',
template => 'greeting.tmpl',
config => { INCLUDE => [ '/templates' ] },
params => { greeting => 'Hello' }
);
======================
Mistake at "{ INCLUDE => [ '/templates' ] }", this parameter is not
works, correct name must be INCLUDE_PATH (see man Template):
----------------------
my $template = Excel::Template::Plus->new(
engine => 'TT',
template => 'greeting.tmpl',
config => { INCLUDE_PATH => [ '/templates' ] },
params => { greeting => 'Hello' }
);
----------------------