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: |
rochnyack [...] ngs.ru
|
Cc: |
|
AdminCc: |
|
|
Severity: |
(no value)
|
Broken in: |
0.86 |
Fixed in: |
0.87 |
|
Tue Jun 05 08:43:46 2007
rochnyack [...] ngs.ru - Ticket created
Hi, bug-HTML-Template-Compiled.
We are start using HTML-Template-Compiled (HTC) in our projects.
Our sites are russian-language speaking, and text has high-bit
symbols. HTML escaping in HTML::Template works fine, but HTC escapes
data in different way :)
After some code analysing we got patch to fix this problem and make
HTC more compatible to H::T.
*** HTML-Template-Compiled-0.85.orig/lib/HTML/Template/Compiled/Utils.pm 2007-04-15 21:22:13.000000000 +0700
--- HTML-Template-Compiled-0.85/lib/HTML/Template/Compiled/Utils.pm 2007-06-05 19:16:02.000000000 +0700
***************
*** 141,147 ****
sub escape_html {
# hopefully encode_entities() works correct
# and doesn't change its arg when called in scalar context
! return HTML::Entities::encode_entities($_[0]);
}
=head2 escape_uri
--- 141,147 ----
sub escape_html {
# hopefully encode_entities() works correct
# and doesn't change its arg when called in scalar context
! return HTML::Entities::encode_entities($_[0],'<>&\'"');
}
=head2 escape_uri
--
Best regards,
Pavel mailto:rochnyack@ngs.ru
Mon Jun 11 18:47:31 2007
TINITA [...] cpan.org - Status changed from 'new' to 'open'
Mon Jun 11 18:52:11 2007
TINITA [...] cpan.org - Given to TINITA
Wed Jun 20 17:05:15 2007
TINITA [...] cpan.org - Correspondence added
On Di. 05. Jun. 2007, 08:43:46, rochnyack@ngs.ru wrote:
Show quoted text> We are start using HTML-Template-Compiled (HTC) in our projects.
> Our sites are russian-language speaking, and text has high-bit
> symbols. HTML escaping in HTML::Template works fine, but HTC escapes
> data in different way :)
[...]
thanks for the patch! i will implement it as soon as possible.
it's important for me to be mostly compatible with HTML::Template.
Tue Jul 17 16:19:41 2007
TINITA [...] cpan.org - Correspondence added
On Mi. 20. Jun. 2007, 17:05:15, TINITA wrote:
Show quoted text> thanks for the patch! i will implement it as soon as possible.
> it's important for me to be mostly compatible with HTML::Template.
it will be in 0.87. i have some other issues waiting, so i hope
to release soon.
thanks again.
Tue Jul 17 16:21:58 2007
TINITA [...] cpan.org - Broken in 0.86 added
Tue Jul 31 13:03:32 2007
TINITA [...] cpan.org - Status changed from 'open' to 'resolved'