> > <div id="content" py:replace="[item.text]+item[:]"> > <p>Body text goes here.</p> > </div> > > What exactly is in item.text and item[:]?? I assume item corresponds to > <div id="content"> element in slave?
item is the name of the matching element in the "slave" template. So in this case it is the body tag in the "slave" template. Item.text gets the first text node in the body element, and item[:] gets all the remaining elements nodes in the body element. All of this replaces the content div in the master template. But the contents of the master template body are "wrapped" around the contents of the "slave's" body template. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ kid-template-discuss mailing list kid-template-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kid-template-discuss