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

Add support for array.length

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.4
    • 1.6
    • Engine
    • None
    • Operating System: other
      Platform: Other
    • 25007

    Description

      I know velocity can only introspect Methods, not member variables, but
      perhaps you could make an exception for arrays?
      Arrays are basically suported with foreach iteration.
      Now it would be great if I could also say "$myarray.length items displayed".
      Is this possible somehow now?
      If not, does someone agree this could be implemented?

      I think .length support should be possible only IF the passed variable is an
      array, and for nothing else.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              g.hueller@gmx.at Gernot Hüller
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: