[Zope] Far Simpler Solution to Including Script-Generated String!

Dan Shafer dan@gui.com
Sun, 30 Dec 2001 18:50:42 -0800


I stumbled, absolutely by accident, on a HowTo called "The difference 
between 'foo' and foo." that held a much more elegant key to this 
problem I've been describing and fighting with the last two days.

It turns out this will work just fine:

<dtml-var "_[pagetoget]">

where pagetoget is the name of the script object that generates the 
string that is the URL I want to load at this point in the page (or 
the name of a file or object to be rendered at this point in the 
page).

I did a search for _.render on Zope.org in hopes of finding some 
documentation for that builtin, didn't find any, but did find this 
little tidbit.

Arrrggghhhh!
-- 
Dan Shafer, Author-Consultant
http://www.danshafer.com
http://www.shafermedia.com