[Grok-dev] Little mistake in the macros with grok mini-tutorial

david stryker outofspacero at gmail.com
Fri Aug 31 14:25:21 EDT 2007


On "referencing a simple macro" part of the tutorial this code:

<html metal:use-macro="context/@@mymacros/mypage">
   <body>
     <!-- slot 'mybody' was defined in the macro above -->
     <div metal:fill-slot="mybody">
       My content from index.pt
     </div>
   </body>
</html>
should read:
<html metal:use-macro="context/@@mymacros/mypage">
   <body>
     <!-- slot 'mybody' was defined in the macro above -->
     <div metal:fill-slot="mycontent">
       My content from index.pt
     </div>
   </body>
</html>

This is because in the mymacros.pt the define-slot is defined as  
mycontent and not mybody.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20070831/0e27c0bc/attachment-0001.htm


More information about the Grok-dev mailing list