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

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

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



Subject: POD inside of templates - there is no __END__ tag.
At the Moment we are adding POD to templates like this: Show quoted text
--- reality ----------------------------------------------------------- <html> ... </html> <%comment POD%> =pod ... =cut <%/comment%> ----------------------------------------------------------------------- But if POD is long, I think the parser has to read a lot and only to foud the <%/comment%> tag. Better we would have an __END__ tag like Perl and then the Parser can stop at this point, has not to read the whole file. --- wish -------------------------------------------------------------- <html> ... </html> __END__ =pod ... =cut -----------------------------------------------------------------------
On Do. 09. Aug. 2007, 05:35:32, STEFFENW wrote: Show quoted text
> At the Moment we are adding POD to templates like this: >[...] > > Better we would have an __END__ tag like Perl and then the Parser can > stop at this point, has not to read the whole file.
[...] i probably could do that easily, but i would first suggest that you try out the filter option: filter => sub { ${$_[0]} =~ s/^__END__.*//m; ${$_[0]} }, filtering is done before parsing so this would be the the fastest solution.
as there wasn't an answer to my suggestion i'm closing (rejecting) this bug. if you want to have bugs/wishlists fixed, communicate with me =)
CC: "Kutter, Martin" <martin.kutter [...] siemens.com>, "Specht, Andreas" <andreas.as.specht [...] siemens.com>
Subject: AW: [rt.cpan.org #28756] POD inside of templates - there is no __END__ tag.
Date: Fri, 16 Nov 2007 11:06:27 +0100
To: <bug-HTML-Template-Compiled [...] rt.cpan.org>
From: "Winkler, Steffen (ext)" <steffen.winkler.ext [...] siemens.com>
Danke, das Thema war für mich auch erledigt. Filter war das richtige Stichwort. Mit freundlichen Grüßen Steffen Winkler Siemens AG ITO C&P 1 - Customer Portal Werner-von-Siemens-Straße 60 91050 Erlangen, Germany Tel.: +49 9131 920-34 15 Fax: +49 9131 920-30333415 steffen.winkler.ext@siemens.com Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Gerhard Cromme; Vorstand: Klaus Kleinfeld, Vorsitzender; Johannes Feldmayer, Heinrich Hiesinger, Joe Kaeser, Rudi Lamprecht, Eduardo Montes, Jürgen Radomski, Erich R. Reinhardt, Hermann Requardt, Uriel J. Sharef, Klaus Wucherer Sitz der Gesellschaft: Berlin und München, Registergericht: Berlin Charlottenburg, HRB 12300, München, HRB 6684 WEEE-Reg.-Nr. DE 23691322 Show quoted text
-----Ursprüngliche Nachricht----- Von: Tina Müller via RT [mailto:bug-HTML-Template-Compiled@rt.cpan.org] Gesendet: Freitag, 16. November 2007 10:29 An: STEFFENW@cpan.org Betreff: [rt.cpan.org #28756] POD inside of templates - there is no __END__ tag. <URL: http://rt.cpan.org/Ticket/Display.html?id=28756 > as there wasn't an answer to my suggestion i'm closing (rejecting) this bug. if you want to have bugs/wishlists fixed, communicate with me =)