Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-700

Add #foreach keyword to specify #break level

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0
    • None
    • Engine
    • None

    Description

      if the last argument to to the #foreach directive is a word, then that word serves as a label to indicate the break level for the #break directive. Par exemple:

      #foreach($user in $users outer)
      #foreach($email in $user.emails)
      #if($email.expired)
      #break(outer)
      #end
      #end
      #end

      Attachments

        Activity

          People

            Unassigned Unassigned
            byronvf Byron Foster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: