Hello! I'am using HTML::Template nearly 6 month and today i try to use HTML::Template::Expr. Example:
use CGI qw/:cgi/; use HTML::Template::Expr; $TemplateData = <<EOT; <html> <head> <title>Test</title> </head> <body> <h1>Test</h1> <TMPL_VAR NAME='banana' ESCAPE='HTML'> </body> </html> EOT my $template = HTML::Template::Expr->new( scalarref => \$TemplateData ); $template->param(banana => 100); print header; print $template->output; This example work fine, but when i change row: <TMPL_VAR NAME='banana' ESCAPE='HTML'> by row <TMPL_VAR NAME='banana+1' ESCAPE='HTML'> its record to error log: HTML::Template : Attempt to set nonexistent parameter 'banana' - this parameter name doesn't match any declarations in the template file : (die_on_bad_params => 1) or by row <TMPL_VAR EXPR='banana' ESCAPE='HTML'> its record to error log: HTML::Template::Expr->new() : Error creating HTML::Template object : HTML::Template->new() : Syntax error in <TMPL_*> tag at /fake/path/for/non/file/template What i do wrong? PS. I'am using HTML::Template v 2.5 and HTML::Template::Expr v 0.03 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
