18 Aug
2000
18 Aug
'00
7:53 p.m.
Chris Withers writes:
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.
I, definitely, prefer the current implementation to making "with" the (only) exception: currently, whenever you use the name parameter of a tag, the object is called when it is callable. If this would be changed, I am almost sure, Chris Withers would later complain about the inconsistency :-) Dieter