geirm       01/06/18 20:35:26

  Modified:    test/templates velocimacro2.vm
               test/templates/compare velocimacro2.cmp
  Log:
  Change to test to see if #if() works correctly and if the old schmoo
  rendering still works also.
  
  Revision  Changes    Path
  1.2       +24 -0     jakarta-velocity/test/templates/velocimacro2.vm
  
  Index: velocimacro2.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/templates/velocimacro2.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- velocimacro2.vm   2001/01/29 04:29:25     1.1
  +++ velocimacro2.vm   2001/06/19 03:35:26     1.2
  @@ -24,3 +24,27 @@
   #foo2( "hi" )
   #foo_two( "hi" )
   
  +
  +#foo( $notincontext )
  +#foo( $notincontext.getThing() )
  +
  +#macro( tester $a )
  +  #if($a)
  +    $a :  yes
  +  #else
  +    $a :  no
  +  #end
  +#end
  +
  +##
  +## test to see if we can print these
  +## as schmoo
  +##
  +
  +#tester( $notincontext )
  +#tester( $notincontext.woogie() )
  +
  +#set($foo = "bar")
  +
  +#tester($foo)
  +
  
  
  
  1.2       +12 -0     jakarta-velocity/test/templates/compare/velocimacro2.cmp
  
  Index: velocimacro2.cmp
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/templates/compare/velocimacro2.cmp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- velocimacro2.cmp  2001/01/29 04:29:26     1.1
  +++ velocimacro2.cmp  2001/06/19 03:35:26     1.2
  @@ -6,3 +6,15 @@
     Hello from foo2 : hi
     Hello from foo_two : hi
   
  +
  +  Hello from foo : $notincontext
  +  Hello from foo : $notincontext.getThing()
  +
  +
  +
  +      $notincontext :  no
  +        $notincontext.woogie() :  no
  +  
  +
  +      bar :  yes
  +  
  
  
  

Reply via email to