Subject: | Bug with lenny |
Date: | Fri, 17 Apr 2009 16:38:24 +1200 |
To: | bug-HTML-Template-Extension [...] rt.cpan.org |
From: | sysadmin-shared <sysadmin-shared [...] catalyst.net.nz> |
Hello,
I install on lenny system using perl -MCPAN -e shell and then install
HTML::Template::Extension and HTML::Template::Extension::SLASH_VAR but
it does not work even with your test text.
The error message is (in the web server error log)
HTML::Template->new() : Unknown or unmatched TMPL construct
at /fake/path/for/non/file/template : line 4.
at /usr/share/perl5/HTML/Template.pm line 2316.
The file t.pl I created is: (copy from the cpan site)
#!/usr/bin/perl
use HTML::Template::Extension;
my $text = qq
|
SLASH_VAR plugin example
========================
If all is ok you can read this here --> <TMPL_VAR NAME="test">a
placeholder</TMPL_VAR>
|;
my $comp = new HTML::Template::Extension(
scalarref => \$text,
plugins=>["SLASH_VAR"],
);
$comp->param('test' => "It works!!!");
print $comp->output;
# OUTPUT:
#
# SLASH_VAR plugin example
# ========================
# If all is ok you can read this here --> It works!!!