Folks, I am wondering if there is any way to force a file located in a LocalFS or ZFSPath directory to be recognized as a Page template. In other words, I want ZOPE to interpret the content of files named with a ".pt" extension to be recognized as a Page Template and interpreted accordingly. If my ZFSPath directory is named "ExternalFiles", then I want to be able to do stuff like <span tal:replace="here/ExternalFiles/myfile.pt"/> and have the contents of myfile.pt be interpreted as TAL constructs. Currently I just see the raw contents in my html output. Thanks, Roy. __________________________________ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861
Roy Mathew wrote at 2004-5-13 04:53 -0700:
I am wondering if there is any way to force a file located in a LocalFS or ZFSPath directory to be recognized as a Page template. In other words, I want ZOPE to interpret the content of files named with a ".pt" extension to be recognized as a Page Template and interpreted accordingly.
Probably, but you must extend "LocalFS" to let it know that some files should be mapped to PageTemplates. I do know nothing about "ZFSPatch". -- Dieter
Hi Roy, I patched LocalFS to work with page templates, and that patch was added to the work of andreas': http://www.easyleading.org/Downloads/LocalFS-1.2-andreas.tar.gz/view It should really be the "official" localFS since it betters the original but doesn't introduce problems like ZODB bloating that people have been talking about with the CVS 1.1 version... Chris Roy Mathew wrote:
Folks,
I am wondering if there is any way to force a file located in a LocalFS or ZFSPath directory to be recognized as a Page template. In other words, I want ZOPE to interpret the content of files named with a ".pt" extension to be recognized as a Page Template and interpreted accordingly.
If my ZFSPath directory is named "ExternalFiles", then I want to be able to do stuff like <span tal:replace="here/ExternalFiles/myfile.pt"/> and have the contents of myfile.pt be interpreted as TAL constructs. Currently I just see the raw contents in my html output.
Thanks, Roy.
__________________________________ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Chris Beaven -
Dieter Maurer -
Roy Mathew