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

People
Owner: Nobody in particular
Requestors: ron [...] savage.net.au
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.66
Fixed in: 0.68



Subject: Unclear documentation
The options 'case_sensitive' and 'use_query' are not clear to me. For example, in <tmpl_var name=x> does 'case_sensitive' refer to the template tag, the word 'name', the variable name 'x', or perhaps even the value of the variable, or does it apply to __first__ etc. Does it apply to file names used in <tmpl_include>? What about in <tmpl_if>? Also, what on earth does 'use_query' mean :-)?
On So. 04. Jun. 2006, 04:38:33, guest wrote: Show quoted text
> The options 'case_sensitive' and 'use_query' are not clear to me. > For example, in <tmpl_var name=x> does 'case_sensitive' refer to the > template tag, the word 'name', the variable name 'x', or perhaps even > the value of the variable, or does it apply to __first__ etc. Does it > apply to file names used in <tmpl_include>? What about in <tmpl_if>? > Also, what on earth does 'use_query' mean :-)?
case_sensitive means the same as in HTML::Template. It has nothing to do with <TMPL_ or <tmpl_ Using case_sensitive => 0 means, you can do: <tmpl_var Foo> is the same as <tmpl_var fOO> This also applies to __first__ etc. use_query => 1 means you want to use the query-method. It means extra-work for HTC (and extra memory consumption) so I made that an option. I'll try to make that clear in the next version. Thanks for the comment.
On So. 04. Jun. 2006, 07:52:35, TINITA wrote: Show quoted text
> I'll try to make that clear in the next version.
i have updated the docs in 0.67. could you check it? otherwise i'll close the request. thanks.
Subject: Re: [rt.cpan.org #19686] Unclear documentation
Date: Thu, 8 Jun 2006 19:43:27 +1000
To: via RT <bug-HTML-Template-Compiled [...] rt.cpan.org>
From: Ron Savage <ron [...] savage.net.au>
On Thu, 8 Jun 2006 05:12:50 -0400 (EDT), via RT wrote: Hi Tina Show quoted text
> i have updated the docs in 0.67. could you check it? otherwise i'll > close the request. thanks.
Thanx. The explanation for case_sensitive is much clearer. The explanations for use_query is unclear. It does not say what the option means. For example, 0 implies what, exactly? Also, just after use_query, there is this line: To be compatible with all use which I think means To set all options so as to be compatible with HTML::Template, use Right :-)? -- Cheers Ron Savage, ron@savage.net.au on 8/06/2006 http://savage.net.au/index.html Let the record show: Microsoft is not an Australian company
Show quoted text
> The explanations for use_query is unclear. It does not say what
the option Show quoted text
> means. For example, 0 implies what, exactly? > > Also, just after use_query, there is this line: > To be compatible with all use > > which I think means > To set all options so as to be compatible with HTML::Template, use > > Right :-)?
I hope the docs are now clear enough =)