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!
Owner: |
TINITA [...] cpan.org
|
Requestors: |
info [...] gwendragon.de
|
Cc: |
|
AdminCc: |
|
|
Severity: |
Wishlist |
Broken in: |
0.96 |
Fixed in: |
0.96_003 |
|
Tue Mar 27 08:22:44 2012
info [...] gwendragon.de - Ticket created
My wish: Expansion of a expression which retrieves data from a stash
using a variable hashkey (key is a template variable).
Template:
<%loop foo alias=bar %>
<%= expr=".hash{bar}" %>
<%/loop %>
<%= expr=".hash{.keyname.somewhere.in.stash}" %>
I hope you understand what i mean - we discussed this in perl-
community.de forum.
Thanks in advance for realisating of my wish.
Sat Apr 21 17:28:42 2012
TINITA [...] cpan.org - Correspondence added
Am Di 27. Mär 2012, 08:22:44, info@gwendragon.de schrieb:
Show quoted text> My wish: Expansion of a expression which retrieves data from a stash
> using a variable hashkey (key is a template variable).
>
> Template:
> <%loop foo alias=bar %>
> <%= expr=".hash{bar}" %>
> <%/loop %>
>
> <%= expr=".hash{.keyname.somewhere.in.stash}" %>
>
> I hope you understand what i mean - we discussed this in perl-
> community.de forum.
> Thanks in advance for realisating of my wish.
>
please see version 0.96_001 (documented under "use_expressions")
Sat Apr 21 17:28:42 2012
The RT System itself - Status changed from 'new' to 'open'
Sat Apr 21 17:29:19 2012
TINITA [...] cpan.org - Taken
Sun Apr 22 10:39:51 2012
TINITA [...] cpan.org - Fixed in 0.96_001 added
Fri May 04 06:10:24 2012
TINITA [...] cpan.org - Correspondence added
Am Sa 21. Apr 2012, 17:28:42, TINITA schrieb:
Show quoted text> please see version 0.96_001 (documented under "use_expressions")
there are some limits to this. aliases and more complex stack expressions
don't work yet.
I'm working on a better way to support this.
Fri May 04 11:53:16 2012
TINITA [...] cpan.org - Correspondence added
Am Fr 04. Mai 2012, 06:10:24, TINITA schrieb:
Show quoted text> Am Sa 21. Apr 2012, 17:28:42, TINITA schrieb:
>
> > please see version 0.96_001 (documented under "use_expressions")
>
> there are some limits to this. aliases and more complex stack
expressions
Show quoted text> don't work yet.
> I'm working on a better way to support this.
I uploaded 0.96_003
Please test
Fri May 04 14:07:22 2012
info [...] gwendragon.de - Correspondence added
Am Fr 04. Mai 2012, 11:53:16, TINITA schrieb:
Show quoted text> I uploaded 0.96_003
>
> Please test
It works for me with expected behaviour.
Thanks a lot!
Fri May 04 15:09:13 2012
TINITA [...] cpan.org - Fixed in 0.96_003 added
Fri May 04 15:09:13 2012
TINITA [...] cpan.org - Fixed in 0.96_001 deleted
Tue Nov 13 19:40:04 2012
TINITA [...] cpan.org - Status changed from 'open' to 'resolved'