Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 40341
Status: resolved
Left: 0 min
Priority: 0/0
Queue: HTML-Template-Compiled

Owner: Nobody
Requestors: RENEEB <RENEEB [...] cpan.org>
Cc:
AdminCc:

Severity: Normal
Broken in: 0.91
Fixed in: 0.93



X History Display mode: Brief headersFull headers
#   Fri Oct 24 05:10:35 2008 RENEEB - Ticket created  
Subject: closing IF_DEFINED is not recognized
[text/plain 437b]
With this testscript

#!/usr/bin/perl

use strict;
use warnings;
use HTML::Template::Compiled;

my $template = qq~<%LOOP TEST %><%IF_DEFINED TEST %><%/IF_DEFINED
%><%/LOOP %>~;
my $obj = HTML::Template::Compiled->new( scalarref => \$template );

I get this error message:

C:\>htc_bug.pl
'TMPL_LOOP' does not match opening tag (IF_DEFINED)at
z9qNADG/9diPc/ZE4cIzuw line 1
at C:/usr/site/lib/HTML/Template/Compiled/Compiler.pm line 321

#   Mon Nov 03 13:37:16 2008 TINITA - Correspondence added  
[text/plain 398b]
On Fr. 24. Okt. 2008, 05:10:35, RENEEB wrote:

> I get this error message:
>
> C:\>htc_bug.pl
> 'TMPL_LOOP' does not match opening tag (IF_DEFINED)at
> z9qNADG/9diPc/ZE4cIzuw line 1
> at C:/usr/site/lib/HTML/Template/Compiled/Compiler.pm line 321

thanks for the report. You can close an if_defined tag with an if
tag. But I admit that seems odd so I'll add the closing if_defined.

regards,
tina
#   Mon Nov 03 13:37:17 2008 RT_System - Status changed from 'new' to 'open'  
#   Tue Nov 04 13:25:12 2008 TINITA - Status changed from 'open' to 'resolved'  
#   Tue Nov 04 13:25:12 2008 TINITA - Severity Normal added  
#   Tue Nov 04 13:25:13 2008 TINITA - Fixed in 0.93 added