On Sep 28, 2006, at 9:18 PM, Ian Wilson wrote: > > My battle against technology continues... > > This probably isn't turbogears specific but I never know. > > I am trying to use the fancy py:layout but it isn't working. > > I have two templates layout.kid and product.kid. I have product.kid > using py:layout="'layout.kid'" and I can tell its working(for regular > html and matching tages) but I have a function pageSpecificJavascript > defined in product.kid that I want to call in layout.kid. It is doing > nothing...actually <?python ?> code isn't even being executing in the > layout file. Is this normal? And if not does anyone else actually > have this working?
Yes, this is normal. templates that you extend *only* bring in py:defs and py:matches. <div py:def="pageSpecificJavascript()"> <script type="text/javascript"><![CDATA[ ... ]]></script> </div> Kevin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

