On Thu, Feb 12, 2009 at 7:17 AM, Chris Czub <[email protected]> wrote: > The "extends" block means, roughly, to take index.html and replace any > blocks inside of it with the ones defined in the current file, photos.html.
I do something similar in TT by varying the include path. I have default files in a base directory and overrides in directories under that. Then I set the include path on each request to be an inheritance tree for the templates: [ '/tt', '/tt/cats' ]. Then when I call "PROCESS head.html" from inside my main template it will look first in /tt/cats and then fall back to /tt. This works great for customizing a nav bar for a certain part of the site, etc. - Perrin _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
