Minor quibble with the "let" tag
For programmers (like me) who like our syntax consistent, the inability to write <dtml-let foo = 1> (because spaces are not permitted around the equivalence operator) is annoying. I have to write <dtml-let foo=1> and that's just plain "ugh!" in my book. Can't something be done about this? Why not accept whitespace in the first place? Should be simple enough, shouldn't it (looking at DT_Let.py, I don't see exactly why not)? -- Alexander Staubo http://www.mop.no/~alex/ "He won a first at Oxford, squandered three fortunes, made love to a thousand women, imbibed strange drugs, sold his soul for Rock 'n' Roll, almost pipped Einstein for the Nobel Prize, was barred from every Chinese noodle parlour in West London and died penniless, at a Hastings boarding-house in his ninetieth year." --Robert Rankin, _The Book of Ultimate Truths_
At 11:01 PM 8/11/99 +0200, Alexander Staubo wrote:
For programmers (like me) who like our syntax consistent, the inability to write
<dtml-let foo = 1>
(because spaces are not permitted around the equivalence operator) is annoying. I have to write
<dtml-let foo=1>
and that's just plain "ugh!" in my book.
You can always say: <dtml-let foo=" 1 " >
Can't something be done about this? Why not accept whitespace in the first place? Should be simple enough, shouldn't it (looking at DT_Let.py, I don't see exactly why not)?
Hmmm. Well, if you see a reasonable way to parse it that doesn't break anything else, why not submit a patch? The main reason it's the way it is, is that I based the code on parsing of other DTML tags' parameters, and thus allowing whitespace would not be consistent. I believe the other tags don't allow whitespace because attributes can be used without values.
participants (2)
-
Alexander Staubo -
Phillip J. Eby