You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jo...@apache.org on 2001/03/20 00:33:02 UTC

cvs commit: jakarta-velocity/test/templates foreach-variable.vm

jon         01/03/19 15:33:01

  Modified:    test/templates foreach-variable.vm
  Log:
  this demonstrates a test case which breaks things...geir is working on a
  fix
  
  Revision  Changes    Path
  1.3       +15 -0     jakarta-velocity/test/templates/foreach-variable.vm
  
  Index: foreach-variable.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/templates/foreach-variable.vm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- foreach-variable.vm	2000/10/23 21:18:27	1.2
  +++ foreach-variable.vm	2001/03/19 23:33:00	1.3
  @@ -15,3 +15,18 @@
       This is $element.
       $velocityCount
   #end
  +
  +#foreach ($element in $list)
  +    -- inner foreach --
  +    #foreach ($element in $list)
  +        This is $element.
  +        $velocityCount
  +    #end
  +    -- inner foreach --
  +
  +    -- outer foreach --
  +    This is $element.
  +    $velocityCount
  +    -- outer foreach --
  +#end
  +