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: 28764
Status: resolved
Priority: 0/
Queue: HTML-Template-Compiled

People
Owner: Nobody in particular
Requestors: kutterma [...] users.sourceforge.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.87
Fixed in: 0.88



Subject: Only last plugin's tags are registered with HTML::Template::Compiled::Compiler
When more than one plugin attempts to register "compile" tags, only the tags of the last plugin are remembered used by HTC's Compiler. This means that all "compile" tags registered before are ignored. The attached file includes a test program and test plugins to clarify the issue. The reason for this behaviour probably is in HTML::Template::Compiled::Compiler in line 45, where the set_tags method reads sub set_tags { $_[0]->[ATTR_TAGS] = $_[1] } but should read something like sub set_tags { for (keys %{$_[1]}) { $_[0]->[ATTR_TAGS]->{ $_ } = $_[1]->{ $_ }; } } Regards, Martin
Subject: HTC.zip
Download HTC.zip
application/x-zip-compressed 1.6k

Message body not shown because it is not plain text.

On Do. 09. Aug. 2007, 10:50:01, MKUTTER wrote: Show quoted text
> When more than one plugin attempts to register "compile" tags, only
the Show quoted text
> tags of the last plugin are remembered used by HTC's Compiler.
thanks, i recognized this myself but forgot to have a further look. working on it now =)
On Mo. 13. Aug. 2007, 07:18:51, TINITA wrote: Show quoted text
> working on it now =)
will be in version 0.88