Edgewall Software

Changes between Version 12 and Version 13 of MarkupTemplates


Ignore:
Timestamp:
Jul 9, 2006, 9:58:12 PM (18 years ago)
Author:
cmlenz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MarkupTemplates

    v12 v13  
    6262
    6363{{{
     64#!xml
    6465<html xmlns="http://www.w3.org/1999/xhtml"
    6566      xmlns:py="http://markup.edgewall.org/"
     
    7475
    7576{{{
     77#!xml
    7678<html xmlns="http://www.w3.org/1999/xhtml"
    7779      xmlns:py="http://markup.edgewall.org/"
     
    8890
    8991{{{
     92#!xml
    9093<html xmlns="http://www.w3.org/1999/xhtml"
    9194      xmlns:py="http://markup.edgewall.org/"
     
    105108=== `py:content` ===
    106109
     110This directive replaces any nested content with the result of evaluating the expression.
     111
     112{{{
     113#!xml
     114<ul xmlns:py="http://markup.edgewall.org/">
     115  <li py:content="bar">Hello</li>
     116</ul>
     117}}}
     118
     119{{{
     120#!xml
     121<ul>
     122  <li>Bye</li>
     123</ul>
     124}}}
     125
    107126=== `py:replace` ===
     127
     128This directive replaces the element itself with the result of evaluating the expression.
     129
     130{{{
     131#!xml
     132<div xmlns:py="http://markup.edgewall.org/">
     133  <span py:replace="bar">Hello</span>
     134</div>
     135}}}
     136
     137{{{
     138#!xml
     139<div>
     140  Bye
     141</div>
     142}}}
    108143
    109144=== `py:attrs` ===
    110145
     146Adds, modifies or removes attributes from the element.
     147
    111148=== `py:if` ===
     149
     150The element is only rendered if the expression evaluates to a truth value.
    112151
    113152=== `py:choose` / `py:when` / `py:otherwise` ===