Skip Menu |

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

Maintainer(s)' notes

Note: there is a bug with caching and TMPL_INCLUDE_VAR since 0.97_004 until 0.98. either use an earlier version or upgrade to 0.98_001. Another workaround is to precompile all templates to file_cache_dir. The bug happens when including a template via INCLUDE_VAR and the template is not yet compiled or has changed.

I'm sorry if the change about aliases came quite unannounced. I didn't expect any problems since dollar signs are not allowed in template vars, but I heard from at least one case where people were doing exactly this.
Please do not use unallowed characters in template vars. Allowed are (from the HTML::Template::FAQ): Numbers, letters, '.', '/', '+', '-' and '_'.
This should work in HTML::Template::Compiled::Classic.
in HTML::Template::Compiled you should be only using numbers, letters and _.
The dot, for example, is special. If you need to get a hash key from the template parameters with special charcaters, you can try <tmpl_var _.$var$name$with$dollars >

There will be a workaround in the next version:
local $HTML::Template::Compiled::Compiler::DISABLE_NEW_ALIAS = 1;


Please report any bug you find.
The code is now hosted on https://github.com/perlpunk/HTML-Template-Compiled
If you have a bug report, you can also post it there in the "Issues" section.
In the bugreport, please include, if possible, the module version, perl version and a testcase that reproduces the error; that makes it easier to find the bug.

The issue with not reloading includes of includes should be fixed in version 0.95_003. If you have any problems though please report!

Using query() and the dot syntax might not work together always. If you have a tmpL_var name="..foo" (going up the stash one level) the var foo is not detected and will not be reported by the query() function. Since the dot syntax is for dereferencing hashes and method calls the query function might not make sense anyway. I believe it is a bad idea to let the program do things if the template is using a certain variable.

Thanks!

Report information
The Basics
Id: 43591
Status: resolved
Priority: 0/
Queue: HTML-Template-Compiled

People
Owner: Nobody in particular
Requestors: JMarshall [...] omniture.com
Cc:
AdminCc:

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



Subject: Fixes for two bugs in HTML::Template::Compiled 0.93
Date: Tue, 24 Feb 2009 17:11:36 -0800
To: bug-HTML-Template-Compiled [...] rt.cpan.org
From: James Marshall <JMarshall [...] omniture.com>
Hi Tinita, We've been using HTML::Template and are looking forward to moving to HTML::Template::Compiled, for speed and new features-- looks great! While making the transition, I found a couple of bugs in HTC and managed to fix them. They are: 1) Single-quoted strings in attributes aren't handled correctly. Patch for Parser.pm: 581c581 < if ($arg->{template} =~ s{^ (\s* (['"]) ([^"]+) \2 \s*) }{}x) { --- Show quoted text
> if ($arg->{template} =~ s{^ (\s* (['"]) (.+?) \2 \s*) }{}xs) {
2) When case_sensitive is off, non-uppercase-named variables aren't retrieved correctly. Patch for Compiler.pm: 320c320 < $code = "\$t->try_global($varname, '$p')"; --- Show quoted text
> $code = "\$t->try_global($varname, '$path')";
Thanks very much for the software! Let me know if I can provide anything else, like test cases. Cheers, James
On Di. 24. Feb. 2009, 20:11:56, JMarshall@omniture.com wrote: [...] thanks for the report, I have had a really really busy time over the last months; I'll try to look into the issue these days, after a quick look the patches look fine... tina
Subject: Re: [rt.cpan.org #43591] Fixes for two bugs in HTML::Template::Compiled 0.93
Date: Wed, 1 Jul 2009 09:36:18 -0700
To: "bug-HTML-Template-Compiled [...] rt.cpan.org" <bug-HTML-Template-Compiled [...] rt.cpan.org>
From: James Marshall <JMarshall [...] omniture.com>
Cool, thanks! Glad to hear the module's still being maintained; it means we can use it. Cheers, James On Jul 1, 2009, at 4:32 AM, Tina Muller via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=43591 > > > On Di. 24. Feb. 2009, 20:11:56, JMarshall@omniture.com wrote: > [...] > > thanks for the report, I have had a really really busy time over the > last months; I'll try to look into the issue these days, after a quick > look the patches look fine... > > tina
I added the patches to the developer version 0.93_001 which I hope to release this weekend. thanks!
Subject: Re: [rt.cpan.org #43591] Fixes for two bugs in HTML::Template::Compiled 0.93
Date: Mon, 13 Jul 2009 11:02:08 -0700
To: "bug-HTML-Template-Compiled [...] rt.cpan.org" <bug-HTML-Template-Compiled [...] rt.cpan.org>
From: James Marshall <JMarshall [...] omniture.com>
You bet. Thanks again for HTC! James On Jul 11, 2009, at 8:39 AM, Tina Muller via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=43591 > > > I added the patches to the developer version 0.93_001 which I hope to > release this weekend. thanks!