root/trunk/examples/templates/example_attributes_addsystemvars.tmpl

Revision 278, 1.3 kB (checked in by schst, 4 years ago)

added more options to addSystemVars attribute (request #64)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <!-- $Id$ -->
2 <patTemplate:tmpl name="page">
3
4     <h3>SystemVars = boolean</h3>
5
6     <patTemplate:tmpl name="tmpl-1" addSystemVars="boolean">
7     <strong>System-variables:</strong><br />
8    
9     PAT_LOOPS    : {PAT_LOOPS}<br />
10     PAT_IS_FIRST : {PAT_IS_FIRST}<br />
11     PAT_IS_LAST  : {PAT_IS_LAST}<br />
12     PAT_IS_ODD   : {PAT_IS_ODD}<br />
13     PAT_IS_EVEN  : {PAT_IS_EVEN}<br />
14     PATTEMPLATE_VERSION : {PATTEMPLATE_VERSION}<br />
15     <hr />
16     </patTemplate:tmpl>
17
18     <h3>SystemVars = integer</h3>
19    
20     <patTemplate:tmpl name="tmpl-2" addSystemVars="integer">
21     <strong>System-variables:</strong><br />
22    
23     PAT_LOOPS    : {PAT_LOOPS}<br />
24     PAT_IS_FIRST : {PAT_IS_FIRST}<br />
25     PAT_IS_LAST  : {PAT_IS_LAST}<br />
26     PAT_IS_ODD   : {PAT_IS_ODD}<br />
27     PAT_IS_EVEN  : {PAT_IS_EVEN}<br />
28     PATTEMPLATE_VERSION : {PATTEMPLATE_VERSION}<br />
29     <hr />
30     </patTemplate:tmpl>
31
32     <h3>SystemVars = anyValue</h3>
33    
34     <patTemplate:tmpl name="tmpl-3" addSystemVars="yo baby yo baby yo!">
35     <strong>System-variables:</strong><br />
36    
37     PAT_LOOPS    : {PAT_LOOPS}<br />
38     PAT_IS_FIRST : {PAT_IS_FIRST}<br />
39     PAT_IS_LAST  : {PAT_IS_LAST}<br />
40     PAT_IS_ODD   : {PAT_IS_ODD}<br />
41     PAT_IS_EVEN  : {PAT_IS_EVEN}<br />
42     PATTEMPLATE_VERSION : {PATTEMPLATE_VERSION}<br />
43     <hr />
44     </patTemplate:tmpl>
45  </patTemplate:tmpl>
Note: See TracBrowser for help on using the browser.