* Jesse Sheidlower <jester at panix.com> [2003/11/18 23:47]: > I hit on something that seems really weird, which must mean that > I'm missing something totally obvious about the use of CGI.pm, > but I'd be grateful for a pointer anyway.
I'm not able to reproduce your problem:
$ tpage
[% USE CGI; book_ref.title = 'The "Good" War' %]
<tr><td>Title</td>
<td>[% CGI.textfield({name => "title", value => book_ref.title}) %]</td>
</tr>
The output is properly quoted:
<tr><td>Title</td>
<td><input type="text" name="title" value="The "Good" War" /></td>
</tr>
I tested with CGI 2.98 and 3.00, under TT 2.10a. Is there something
else going on, maybe? There is no reason that I know of that the CGI
plugin should behave differently under TT, since the CGI plugin simply
defers to CGI.pm:
package Template::Plugin::CGI;
sub new {
my $class = shift;
my $context = shift;
CGI->new(@_);
}
(darren)
--
"Quiet and courteous" is often mistaken for "kind and polite."
-- Andrew Langmead
pgp00000.pgp
Description: PGP signature
