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

People
Owner: Nobody in particular
Requestors: mw [...] arsnavigandi.de
Cc:
AdminCc:

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



Subject: a litte - but troublesome - difference to HTML::Template
Hello, using "." in template vars doesn't work in HTML::Template::Compiled .. even written as a string literal: e.g.: <tmpl_var name="person.prename"> <tmpl_var name="person.name"> does not work (in difference to HTML::Template) is it possible to fix this in your Module - I know that you use the "." for things like <TMPL_VAR .SELF> .. but what if names have "." ?!? best regards Martin by the way: I like the your HTML::Template::Compiled for it's speed :)
On Di. 11. Apr. 2006, 06:32:34, guest wrote: Show quoted text
> is it possible to fix this in your Module - I know that you use the ".
" Show quoted text
> for things like <TMPL_VAR .SELF> .. but what if names have "." ?!?
yes, that's something i noticed already. i really would like to fix it. but it's only possible with an extra option. with this option you would then choose either names with '.' (etc.) *or* method calls.
On Di. 11. Apr. 2006, 06:32:34, guest wrote: Show quoted text
> using "." in template vars doesn't work in HTML::Template::Compiled .. > even written as a string literal:
actually, it *should* work... i forgot that i already fixed this. can you provide an example where it doesn't work?
didn't hear anything from the original poster, so I guess everything's fine.