Skip Menu |

This queue is for tickets about the HTML-Template CPAN distribution.

Report information
The Basics
Id: 14037
Status: resolved
Priority: 0/
Queue: HTML-Template

Owner: Nobody in particular
Requestors: MARKSTOS [...]

Bug Information
Severity: Normal
Broken in: 2.7
Fixed in: (no value)

Subject: be friendly to sub-classes by not hardcoding package name
Download (untitled) / with headers
text/plain 844b
HTML::Template hardcodes it's package name in one place which makes trouble for some sub classing operations. Here's a patch. --- /usr/local/lib/perl5/site_perl/5.8.0/HTML/ Fri Jun 18 12:42:06 2004 +++ Sat Aug 6 16:02:15 2005 @@ -2107,8 +2107,9 @@ # param_map. This means that only the enclosing template # does _parse() - sub-templates get their parse_stack and # param_map fed to them already filled in. + my $pkg = ref $self; $loop->[HTML::Template::LOOP::TEMPLATE_HASH]{$starts_at} - = HTML::Template->_new_from_loop( + = $pkg->_new_from_loop( parse_stack => $parse_stack, param_map => $param_map, debug => $options->{debug},
From: markstos [...]
Download (untitled) / with headers
text/plain 182b
Here's another case where a sub-classer ran into this and provided a solution, although a slightly different one:
Fixed for 2.8.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to