[Zope] #include with DocumentTemplate?

Lance E Sloan lsloan@umich.edu
Thu, 03 May 2001 20:17:53 -0400


Chris Beaumont wrote:
> Do you mean <dtml-var "myDTMLmethodtobeincluded"> ?

Hmm.  I don't think so, but then, I don't understand all the features
of DocumentTemplate, so I'm not sure.  Maybe that will do what I want.

I thought that the dtml-var tag was just used to display the value of a
variable.  Does it do more than that?  I assume that by "myDTMLmethod",
you mean that is a variable that you have assigned a method to.  Is
that correct?  (I have a C background, so I would call it a pointer to
a function.)

If that's what you mean, it's not what I was hoping for.  Basically,
I'm looking for something that works just like the SSI '<!--#include
name="filename"-->' tag.  When DocumentTemplate encounters it in one
DTML file, it will read in the specified file, presumably also
containing DTML, and parse it, recursively.

> Of course, any DTML method will be parsed when the page is viewed, 
> using its context, not rendered into a static file beforehand.. 
> that's the single biggest plus to using Zope, I think..

Yes, I agree.

Since I'm new to Python, I don't understand all the terminology yet.
What exactly do you mean by "DTML method"?  My apologies if I'm asking
so many questions that I seem to be a simpleton.  Hopefully I'm not
getting on anybody's nerves.  Yet.

--
Lance E Sloan
Web Services, Univ. of Michigan: Full-service Web and database design,
development, and hosting.  Specializing in Perl & Python CGIs.
http://websvcs.itd.umich.edu/ - "Putting U on the Web"