Skip Menu |

This queue is for tickets about the HTML-Template-Extension CPAN distribution.

Report information
The Basics
Id: 45099
Status: new
Priority: 0/
Queue: HTML-Template-Extension

People
Owner: Nobody in particular
Requestors: sysadmin-shared [...] catalyst.net.nz
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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!!!