Thank you very much Lynn and Dieter. Yes I needed to dig a little further into the ZPT, as I was only experimenting with TAL. Well I've tried to implement some of the Macro examples but they always end up with the following error: Error Type: METALError Error Value: macro 'here/master' has incompatible version None, at line 1, column 1 I place both the "definition" and "use" templates in the same folder. If I insert a blank line in the template that uses the Macro, the error says line 2, column 1. I've done an exact copy of the Macro examples - both with and without namespaces. What's wrong ? Regards -----Oprindelig meddelelse----- Fra: Lynn Walton [mailto:waltonl@babbage.franklin.edu] Sendt: 20. september 2001 19:09 Til: zope@zope.org; Kenneth Ellested Emne: Re: [Zope] Templates
I'm trying to figure a way to avoid splitting "master" templates in two files. F.ex the standard_html_header and footer is splitted in two parts, making it "a little" more difficult to manage. I'd like a solution (probably a class) where I can create a new document, and then base the new document on a single template (like to have a combo box in the document properties where I can select the template). So instead of referring to the template in DTML or TAL for every document, I just change it with the document property.
Take a look at: Zope Page Templates (ZPT) http://www.zope.org//Wikis/DevSite/Projects/ZPT/FrontPage It is exactly what you're talking about. Lynn
participants (1)
-
Kenneth Ellested