On Feb 12, 2009, at 13:04, Perrin Harkins 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' ]. [....]
On http://www.weblocal.ca/ we do the same thing. It's running on the same software we use for http://www.yellowbot.com/ - but there's a long-ish include path list with various variations of "brands" and languages (so we can override a template separately for say English and French). - ask -- http://develooper.com/ - http://askask.com/ _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
