Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Chameleon / src / chameleon / tests / inputs / 026-repeat-variable.pt
Size: Mime:
<div xmlns="http://www.w3.org/1999/xhtml"
     xmlns:tal="http://xml.zope.org/namespaces/tal">
  <ul>
    <li tal:attributes="class repeat['i'].even()+repeat['i'].odd()" name="${i}-${repeat.i.index}" tal:repeat="i range(3)"><span tal:replace="i" /></li>
  </ul>
  <ul>
    <li tal:attributes="class repeat['i'].even+repeat['i'].odd"
        tal:repeat="i range(3)"><span tal:replace="i" /></li>
  </ul>
  <ul>
    <li tal:repeat="i range(3)"><span tal:condition="repeat['i'].even" tal:replace="repeat['i'].even" /><span tal:condition="repeat['i'].odd" tal:replace="repeat['i'].odd" /></li>
  </ul>
</div>