Home | History | Annotate | Download | only in cs
      1 
      2 <?cs set:foo["baz"].right = "dot right" ?>
      3 <?cs set:foo["baz"].right.label = "dot right" ?>
      4 
      5 <? cs set:foo["baz"] + right = "plus right" ?>
      6 <?cs set:Files.0.Funk = "bam" ?>
      7 
      8 
      9 <?cs def:style() ?>....<?cs /def ?>
     10 
     11 <?cs call:style() ?>
     12 
     13 with whitespace
     14 <?cs call:style( ) ?>
     15 
     16 with extra variable
     17 <?  cs call:style( foo ) ?>
     18 
     19 With whitespace in def...
     20 <?cs def:style2( ) ?>....<?cs /def ?>
     21 
     22 <?cs call:style2() ?>
     23 
     24 
     25 <?cs def:set_info(side, label, value) ?>
     26    <?cs set:rows[row][side].label = label ?>
     27    <?cs set:rows[row][side].value = value ?>
     28    <?cs # the following test would throw a warning if enabled ?>
     29    <?cs # set:side.foo = row ?>
     30    <?cs set:row = row + #1 ?>
     31 <?cs /def ?>
     32 
     33 <?cs set:row = #0 ?>
     34 <?cs call:set_info("left", "phone", Days.0.Abbr) ?>
     35 
     36