[PHPTAL] include templates

Joshua Paine lists at fairsky.us
Thu May 18 05:46:39 CEST 2006


Piotr Barszczewski wrote:
> can I include another template into one? Something that every templating 
> engine has implemented - I just cant find it in the manual. 

The metal:* attributes. Somewhat more complicated than average, perhaps, 
but extremely powerful.

<http://phptal.motion-twin.com/manual/en/#id2499006>

A powerful and sane pattern for handling a common template over several 
pages is shown in the Zope TAL documentation near the end of 
<http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ZPT.stx/AdvZPT.stx> 
under the heading "Whole Page Macros". If I had read this before I 
started building sites with PHPTAL, it would have saved me a lot of 
hassle. (Skipping straight to that section may make it easy for you to 
understand the whole macros thing, or it may confuse the heck out of 
you. Depends on your learning style, I guess.)

-- 
Joshua Paine
Chief Tower Builder
LetterBlock Software
http://letterblock.com/



More information about the PHPTAL mailing list