[Koha-devel] Quoting in templates
Chris Cormack
chris at katipo.co.nz
Wed Jan 22 15:06:02 CET 2003
On Wed, Jan 22, 2003 at 05:54:20PM -0800, Owen Leonard said:
> I'm going through the default [English] templates looking for things to clean
> up, and I'm finding a variety of ways of handling quoting. For example:
>
> <a
> href=/cgi-bin/koha/detail.pl?bib=<TMPL_VAR
> NAME="biblionumber">&type=intra><TMPL_VAR NAME="title">(<TMPL_VAR
> NAME="author">)</a>
>
> I'm assuming that the href= value isn't double-quoted because TMPL_VAR NAME is.
> This won't validate, nor will instances where single quotes are used
> (href=''). Is this really necessary? Isn't Perl looking for the <TMPL...>
> blocks and ignoring the HTML around it?
>
Yep you are right.
The missing " on the href are a mistake.
Fixing those would be good :-)
Chris
--
Chris Cormack Programmer
025 500 789 Katipo Communications Ltd
chris at katipo.co.nz www.katipo.co.nz
More information about the Koha-devel
mailing list