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

Empty loops handling with #foreach() ... #else nothing #end

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • Engine
    • None

    Description

      Empty loops handling via #else for #foreach:

      #foreach($name in $people)
      $name is here
      #else
      nobody here
      #end

      Attachments

        Activity

          People

            cbrisson Claude Brisson
            cbrisson Claude Brisson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: