[Zope] Re: Newbie Questions
Paul Winkler
pw_lists@slinkp.com
Mon, 4 Feb 2002 00:27:37 -0500
On Sun, Feb 03, 2002 at 08:51:45AM -0500, Wade Leftwich wrote:
> You *can* create PageTemplates that are html fragments, then call them from
> other templates. This is a legal PT:
> <p tal:content="string:hello"/>
Ah, thanks, I was wrong. What I was thinking of is that page
templates must be valid *xml*. That is, tags must be closed, tag
nesting must be done correctly, etc... Which doesn't necessarily mean
that you need an <html> or <head> tag, of course. My bad.
> For re-using pieces of presentation logic, use macros ("metal"), a bit
> trickier than basic "tal" but very worthwhile.
Like the man said.
--
paul winkler
home: http://www.slinkp.com
music: http://www.reacharms.com
calendars: http://www.calendargalaxy.com