Edgewall Software

Changes between Version 23 and Version 24 of MarkupTemplates


Ignore:
Timestamp:
Jul 19, 2006, 10:14:31 PM (18 years ago)
Author:
cmlenz
Comment:

Document [95]

Legend:

Unmodified
Added
Removed
Modified
  • MarkupTemplates

    v23 v24  
    344344}}}
    345345
     346If a template function doesn't require parameters, it can be defined as well as called without the parenthesis. For example:
     347
     348{{{
     349#!xml
     350<div xmlns:py="http://markup.edgewall.org/">
     351  <p py:def="greeting" class="greeting">
     352    Hello, world!
     353  </p>
     354  ${greeting}
     355</div>
     356}}}
     357
     358The above would be rendered to:
     359
     360{{{
     361#!xml
     362<div>
     363  <p class="greeting">
     364    Hello, world!
     365  </p>
     366</div>
     367}}}
     368
    346369This directive can also be used as an element:
    347370