Changes between Version 23 and Version 24 of MarkupTemplates
- Timestamp:
- Jul 19, 2006, 10:14:31 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MarkupTemplates
v23 v24 344 344 }}} 345 345 346 If 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 358 The above would be rendered to: 359 360 {{{ 361 #!xml 362 <div> 363 <p class="greeting"> 364 Hello, world! 365 </p> 366 </div> 367 }}} 368 346 369 This directive can also be used as an element: 347 370