[ZPT] changing the order of operations

Jean Jordaan jean at upfrontsystems.co.za
Mon Jul 28 12:55:10 EDT 2003


> I think most people prefer just to shove stuff into the tal: 
> or metal: namespaces nowadays:

Yes, I try to do this wherever it makes sense, and use the 
tagname as a small documentation opportunity. It's especially 
nice where you close the tag::

  <tal:menu_items repeat="item ...">
    <div tal:define="menu_id ...; menu_url ...">
    [... lots of stuff ...]
  </tal:menu_items>

Much better than "</span> <!-- end of menu items -->"

-- 
Jean Jordaan
http://www.upfrontsystems.co.za




More information about the ZPT mailing list