You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ge...@apache.org on 2001/01/29 05:29:26 UTC

cvs commit: jakarta-velocity/test/templates/compare velocimacro2.cmp

geirm       01/01/28 20:29:26

  Added:       test/templates velocimacro2.vm
               test/templates/compare velocimacro2.cmp
  Log:
  To test the extended directive (VM) identifiers...
  
  Revision  Changes    Path
  1.1                  jakarta-velocity/test/templates/velocimacro2.vm
  
  Index: velocimacro2.vm
  ===================================================================
  #**
  
  @test velocimacro2.vm
  
  This template is used for Velocity regression testing.
  If you alter this template make sure you change the
  corresponding comparison file so that the regression 
  test doesn't fail incorrectly.
  
  *#
  #macro( foo $a )
    Hello from foo : $a
  #end
  
  #macro( foo2 $a )
    Hello from foo2 : $a
  #end
  
  #macro( foo_two $a )
    Hello from foo_two : $a
  #end
  
  #foo( "hi" )
  #foo2( "hi" )
  #foo_two( "hi" )
  
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/velocimacro2.cmp
  
  Index: velocimacro2.cmp
  ===================================================================
  
  
  
  
    Hello from foo : hi
    Hello from foo2 : hi
    Hello from foo_two : hi