Given this working DTML <dtml-with "graphic"> <dtml-var "_.getitem('pythonpowered.gif')"> </dtml-with> - what would be a "shorter", more maintenance-friendly version? I would favour <dtml-var "graphic.pythonpowered"> but the problem is that I definitely must serve the file with a dotted file extension - there is no way around this. Any ideas? Is there perhaps an alternative way around the problem? I don't really care how to achieve the goal in a maintainable, robust manner, but in the end the browser needs to see <IMG SRC="http://somewhere/graphic/pythonpowered.gif"> Thanks! Stefan
Given this working DTML
<dtml-with "graphic"> <dtml-var "_.getitem('pythonpowered.gif')"> </dtml-with>
- what would be a "shorter", more maintenance-friendly version?
<dtml-var "graphic['pythonpowered.gif'].tag()"> -- Duncan Booth duncan@dales.rmplc.co.uk int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3" "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure? http://dales.rmplc.co.uk/Duncan
participants (2)
-
Duncan Booth -
Stefan Hoffmeister