Edgewall Software

Changes between Version 24 and Version 25 of MarkupTemplates


Ignore:
Timestamp:
Jul 25, 2006, 10:07:29 AM (18 years ago)
Author:
cmlenz
Comment:

Remove namespace decl from snippets to reduce clutter

Legend:

Unmodified
Added
Removed
Modified
  • MarkupTemplates

    v24 v25  
    116116{{{
    117117#!xml
    118 <ul xmlns:py="http://markup.edgewall.org/">
     118<ul>
    119119  <li py:content="bar">Hello</li>
    120120</ul>
     
    138138{{{
    139139#!xml
    140 <div xmlns:py="http://markup.edgewall.org/">
     140<div>
    141141  <span py:replace="bar">Hello</span>
    142142</div>
     
    160160{{{
    161161#!xml
    162 <ul xmlns:py="http://markup.edgewall.org/">
     162<ul>
    163163  <li py:attrs="foo">Bar</li>
    164164</ul>
     
    192192{{{
    193193#!xml
    194 <div xmlns:py="http://markup.edgewall.org/">
     194<div>
    195195  <div py:strip="True"><b>foo</b></div>
    196196</div>
     
    214214{{{
    215215#!xml
    216 <div xmlns:py="http://markup.edgewall.org/">
     216<div>
    217217  <b py:if="foo">${bar}</b>
    218218</div>
    219219}}}
    220220
    221 Given the data `{'foo'=True, 'bar'='Hello'}` in the template context, this would produce:
     221Given the data `foo=True` and `bar='Hello'` in the template context, this would produce:
    222222
    223223{{{
     
    232232{{{
    233233#!xml
    234 <div xmlns:py="http://markup.edgewall.org/">
     234<div>
    235235  <py:if test="foo">
    236236    <b>${bar}</b>
     
    248248{{{
    249249#!xml
    250 <div xmlns:py="http://markup.edgewall.org/" py:choose="">
     250<div py:choose="">
    251251  <span py:when="0 == 1">0</span>
    252252  <span py:when="1 == 1">1</span>
     
    268268{{{
    269269#!xml
    270 <div xmlns:py="http://markup.edgewall.org/" py:choose="1">
     270<div py:choose="1">
    271271  <span py:when="0">0</span>
    272272  <span py:when="1">1</span>
     
    290290{{{
    291291#!xml
    292 <ul xmlns:py="http://markup.edgewall.org/">
     292<ul>
    293293  <li py:for="item in items">${item}</li>
    294294</ul>
     
    308308{{{
    309309#!xml
    310 <ul xmlns:py="http://markup.edgewall.org/">
     310<ul>
    311311  <py:for each="item in items">
    312312    <li>${item}</li>
     
    321321{{{
    322322#!xml
    323 <div xmlns:py="http://markup.edgewall.org/">
     323<div>
    324324  <p py:def="greeting(name)" class="greeting">
    325325    Hello, ${name}!
     
    348348{{{
    349349#!xml
    350 <div xmlns:py="http://markup.edgewall.org/">
     350<div>
    351351  <p py:def="greeting" class="greeting">
    352352    Hello, world!
     
    371371{{{
    372372#!xml
    373 <div xmlns:py="http://markup.edgewall.org/">
     373<div>
    374374  <py:def function="greeting(name)">
    375375    <p class="greeting">Hello, ${name}!</p>
     
    386386{{{
    387387#!xml
    388 <div xmlns:py="http://markup.edgewall.org/">
     388<div>
    389389  <span py:match="greeting">
    390390    Hello ${select('@name')}
     
    411411{{{
    412412#!xml
    413 <div xmlns:py="http://markup.edgewall.org/">
     413<div>
    414414  <py:match path="greeting">
    415415    <span>Hello ${select('@name')}</span>