> I looked at _fetch_unqualified.  You would get this functionality for
> free
> if you set the INCLUDE_PATH to something like ['/foo/bar/baz', '/foo/bar',
> '/foo'], where /foo/bar/baz is the CWD and /foo is the root dir.  

This is not the case.  INCLUDE_PATH is static and global.  _fetch_unqualified
looks at the working directory of the current Document object, which
is *usually* the same directory as the location of the requested template,
but changes whenever you include a document with a path component, and
reverts back when that processing is finished.  Thus the _load method
that stuffs a private _epath property into the documents, and thus the
document stack in the context.  This behavior is dynamic per-template,
not per-request.

__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com



Reply via email to