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

People
Owner: Nobody in particular
Requestors: STEFFENW [...] cpan.org
Cc:
AdminCc:

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



Subject: method missing
Undefined subroutine &HTML::Template::Compiled::Compiler::_expr_close called at /opt/.../lib/HTML/Template/Compiled/Compiler.pm line 767.
On Fr. 01. Aug. 2008, 07:43:17, STEFFENW wrote: Show quoted text
> Undefined subroutine &HTML::Template::Compiled::Compiler::_expr_close > called at /opt/.../lib/HTML/Template/Compiled/Compiler.pm line 767.
thanks for the report, however, I have problems to reproduce. I do not find any occurrence of "_expr_close" in version 0.92 Maybe the installation didn't work correctly? Can you send attach an ls -l of all .pm files HTML/Template/Compiled* ? thanks, tina
I can not tell you that. I have installed 0.90. Than I had installed 0.92. I saw the Error. I rolled back to 0.90 in minutes.
On Mo. 18. Aug. 2008, 08:10:13, STEFFENW wrote: Show quoted text
> I can not tell you that. > I have installed 0.90. > Than I had installed 0.92. > I saw the Error. > I rolled back to 0.90 in minutes.
I can only assume that you might have used mod_perl and maybe one module was reloaded and the other wasn't so that a function got called from old code which doesn't exist in the new version. If you can't provide reproducing code I have to close the ticket :-/ The line where the error occurred is a comment line in version 0.92, so there must have been a problem with your installation. Try contacting me in the IRC channel if it still doesn't work.
Due to a warkaround for #30693: allow LOOP also for a single value we had load a local Compiler.pm, I forgot. Now we have to create a new fixed (30693) Compiler.pm.