[Zope] Inserting the content of a file in a Page template

Peter Bengtsson mail@peterbe.com
Wed, 06 Mar 2002 10:29:29 +0100


>
>I find a lot of info to include a PROPERTY of a file into a page template.
>But I want to include the CONTENT of a file into this page template.
>-> what should be the format of the file that I want to include
>-> how do I make the include statement from my page template?

Use the () method.
I.e.
content = context.myfileobject()

If that's not the one, use context.myfileobject.read()

Peter