Home | History | Annotate | Download | only in cs
      1 
      2 Start of File
      3 
      4 <?cs if:Blah == "wow" ?>
      5   Blah == wow
      6 <?cs else ?>
      7   Blah != wow
      8 <?cs /if ?>
      9 
     10 
     11 <?cs  if:!#0 ?>
     12 
     13 <?cs if:arg1 ?>
     14 wow (true)
     15 <?cs else ?>
     16 other (false)
     17 <?cs /if ?>
     18 
     19 <?cs if:#5 ?>
     20   This is True
     21 <?cs /if ?>
     22 
     23 <?cs if:Blah == Foo ?>
     24 <?cs /if ?>
     25 
     26 <?cs if:Blah < #5 ?>
     27   <?cs var:Blah ?>
     28 <?cs /if ?>
     29 
     30 <?cs include!"test2.cs" ?>
     31 <?cs linclude!"test2.cs" ?>
     32 
     33 <?cs include!"test_escape.cs" ?>
     34 <?cs escape: "html" ?><?cs call:echo_all(Title+BlahJs:UrlArg) ?><?cs /escape ?>
     35 
     36 <?cs each: x=Foo.Bar.Baz ?>
     37   x = <?cs var:x ?>
     38   x.num = <?cs var:x.num ?>
     39 
     40 <?cs if:#1 ?>
     41   This is True.
     42 <?cs /if ?>
     43 wow
     44 <?cs /each ?>
     45 <?cs /if ?>
     46 
     47 <?cs if:#Wow.Foo ?>
     48   This is False.
     49 <?cs /if ?>
     50 
     51 <?cs each:x=Outside ?>
     52   Outside <?cs name:x ?>
     53   <?cs each:y=x.Inside ?>
     54     Inside = <?cs var:y ?>
     55   <?cs /each ?>
     56 <?cs /each ?>
     57 
     58 <?cs if:TestIf == "0" ?>
     59   TestIf == 0
     60 <?cs elif:TestIf == "1" ?>
     61   <?cs var:TestIf ?>
     62   TestIf == 1
     63 <?cs else ?>
     64   TestIf == else
     65 <?cs /if ?>
     66 
     67 <?cs if:"1" == "1" ?>
     68 Correct, "1" == "1"
     69 <?cs else ?>
     70 WRONG, "1" != "1"
     71 <?cs /if ?>
     72 
     73 <?cs # This is a ClearSilver Comment ?>
     74 
     75 between comments
     76 
     77 <?cs ##########################################################
     78      # A multi-line
     79      # comment 
     80 ?>
     81 
     82 More?
     83