Hi, Just noticed this: If you do <dtml-with object> where object is something callable, it calls it. That's a bit unpleasant for things like Squishdot Sites which do something (return a list of all their elements) when you call them. So the only way to _really_ do what I thought dtml-with is for was to do <dtml-with "object"> which is sucky to say the least. Comments, anyone? cheers, Chris
Chris Withers wrote:
Hi,
Just noticed this:
If you do <dtml-with object> where object is something callable, it calls it.
That's a bit unpleasant for things like Squishdot Sites which do something (return a list of all their elements) when you call them.
So the only way to _really_ do what I thought dtml-with is for was to do <dtml-with "object"> which is sucky to say the least.
Comments, anyone?
Huhh?? why is that sucky?
Kapil Thangavelu wrote:
Comments, anyone?
Huhh?? why is that sucky?
The most common newbie trip-up is the difference between <dtml-var x> and <dtml-var "x"> This is another example of that suckiness. <dtml-with > doesn't say it executes its name, and doesn't feel like it should... cheers, Chris
participants (2)
-
Chris Withers -
Kapil Thangavelu