[Zope] Re: Options for Server Side Includes

Maik Jablonski maik.jablonski@uni-bielefeld.de
Wed, 19 Feb 2003 19:45:12 +0100


Maik Jablonski wrote:
> Edward Pollard wrote:
> 
>> As part of the process of migrating content from other web servers to
>> Zope I'm faced with a bit of a puzzle in regards to handling the server
>> side includes used on the old system.
>>
>> I've found some comprehensive discussion on SSI with DTML, but we're
>> only using Page Templates. I, of course, understand that tal:replace can
>> be used, but I'm wondering if there are any other options. (Can't DTML
>> be used in a Page Template? I thought I read that somewhere but it
>> doesn't work...) The DTML examples are at least similar to our current
>> usage.
> 
> 
> You can include DTML into ZPT with something like:
> 
>  <span tal:replace="structure python:here.yourDTMLMethod(here, 
> request)"></span>

Additional note: If you like the "lazy" style something like

<span tal:replace="structure here/yourDTMLMethod">content </span>

should work as well...

-mj

-- 
German Zope User Group (DZUG) - http://www.dzug.org/