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"
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
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.