[PHPTAL] How to uses correctly PHPTAL to limit the copy/paste
of XHTML ?
Christoph Frick
frick at sc-networks.com
Wed Apr 23 17:49:04 CEST 2008
On Wed, Apr 23, 2008 at 05:07:47PM +0200, Guillaume Lecanu wrote:
> Like index.php and about.php have the same menu, I have added a
> /templates/macros.html page. In this macros.html, I have added the
> menu div with the attribute metal:define-macro="menu". In the 2
> others templates pages, I have set the menu sample to uses the
> macros.html version, for that I have used
> metal:use-macro="macros.html/menu"
You should read up the parts about define-slot and fill-slot in the
phptal docs.
--
cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://lists.motion-twin.com/pipermail/phptal/attachments/20080423/0596ae03/attachment.pgp
More information about the PHPTAL
mailing list