[Zope] Newbie Question - DTML syntax for referencing files with extensions
Paul Winkler
pw_lists@slinkp.com
Mon, 11 Nov 2002 13:53:56 -0800
On Mon, Nov 11, 2002 at 12:12:54PM -0700, Gary Speer wrote:
> Hi all -
> I've been through the books and searched howtos, but can't find the trick.
>
> In short, I'm looking for the sytax to use to reference a file name that has
> an extension so that the extension is treated as a continuation of the
> filename and not treated as an attribute of a resulting non-existant object
> due to truncating the extension.
DTML is not good at this. You have to use a python expression and
use dictionary syntax.
So
<dtml-var foo.html>
would be more like
<dtml-var expr="_['foo.html']">
I like it better in TAL:
<span tal:content="here/foo.html"> </span>
--
Paul Winkler
http://www.slinkp.com
"Welcome to Muppet Labs, where the future is made - today!"