Skip Menu |
 

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

Report information
The Basics
Id: 28205
Status: rejected
Priority: 0/
Queue: HTML-Template

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

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



Subject: Documentation bug for "allowed characters in TMPL_* NAME"
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 492
Download (untitled) / with headers
text/plain 492b
hi, under "Frequently saked questions" i found the following: Show quoted text
> Q: What characters are allowed in TMPL_* NAMEs? > A: Numbers, letters, '.', '/', '+', '-' and '_'.
but actually, more characters work, e.g. = or ~ <tmpl_var name="foo~bar=baz"> So the documentation should be updated to list all allowed characters. example: perl -wle' use HTML::Template; my $ht = HTML::Template->new(scalarref => \q{<tmpl_var name="foo~bar=baz">}); $ht->param("foo~bar=baz" => 23); print $ht->output' 23
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2466-1302192536-1108.28205-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 496
Download (untitled) / with headers
text/plain 496b
On Sat Jul 14 14:38:44 2007, TINITA wrote: Show quoted text
> > Q: What characters are allowed in TMPL_* NAMEs? > > A: Numbers, letters, '.', '/', '+', '-' and '_'.
> > but actually, more characters work, e.g. = or ~ > <tmpl_var name="foo~bar=baz">
But those don't always work. For instance they don't work when used like: <tmpl_var foo~bar=baz> The fact that they sometimes work is an accident of the parser and not something we want to support. The documentation only lists the supportable characters.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.