[Zope-dev] dtml-let & the DTML debate

Ethan Fremen mindlace@majordomo.net
Fri, 26 Nov 1999 09:12:07 +0000


Ethan Fremen wrote:
> <dtml-let name=id
> pdf=end
> pdffile="name + pdf"
> filesize="_[pdffile].get_size() / 1024">
> 
> <p class="download"><a href="<dtml-var absolute_url>.pdf">Download</a>
> <dtml-var filesize>kb</p>
> </dtml-let>

Having now used it for the first time, I think that dtml-let and similar
constructs should be pure python, as PythonMethods...

Let's say I call that pythonmethood kb, then I'd do something like this:

<dtml-var kb> or even better &dtml-kb;

and kb would just return the final string I'm looking for (file size in
KB).

--
Ethan "mindlace" Fremen
you cannot abdicate responsibility
for your ideology.