Changes between Version 12 and Version 13 of MarkupTemplates
- Timestamp:
- Jul 9, 2006, 9:58:12 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MarkupTemplates
v12 v13 62 62 63 63 {{{ 64 #!xml 64 65 <html xmlns="http://www.w3.org/1999/xhtml" 65 66 xmlns:py="http://markup.edgewall.org/" … … 74 75 75 76 {{{ 77 #!xml 76 78 <html xmlns="http://www.w3.org/1999/xhtml" 77 79 xmlns:py="http://markup.edgewall.org/" … … 88 90 89 91 {{{ 92 #!xml 90 93 <html xmlns="http://www.w3.org/1999/xhtml" 91 94 xmlns:py="http://markup.edgewall.org/" … … 105 108 === `py:content` === 106 109 110 This 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 107 126 === `py:replace` === 127 128 This 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 }}} 108 143 109 144 === `py:attrs` === 110 145 146 Adds, modifies or removes attributes from the element. 147 111 148 === `py:if` === 149 150 The element is only rendered if the expression evaluates to a truth value. 112 151 113 152 === `py:choose` / `py:when` / `py:otherwise` ===