Hello, How it is possible to wrap the response of a subtree? For example, for the path /foo/bar/baz, a script located at /foo/wrapper would catch the output of the rest of the request path (./bar/baz) and do a transformation upon it (gzip, xslt, etc). Thank you, -- Laurian Gridinoc, www.grapefruit.ro
Laurian Gridinoc wrote:
How it is possible to wrap the response of a subtree? For example, for the path /foo/bar/baz, a script located at /foo/wrapper would catch the output of the rest of the request path (./bar/baz) and do a transformation upon it (gzip, xslt, etc).
Well, if you make 'foo' a python script or page template, /bar/baz will be available in the traverse_subpath variable and you can do whatever you want with them :-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (2)
-
Chris Withers -
Laurian Gridinoc