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

Proposal to add ability to pass variables to #parse()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.7
    • None
    • Engine

    Description

      I think it would be very useful to be able to pass variables to #parse(), just like to #macro():

      #parse("tpl.vm" $var1 $var2 $var3)

      This would add $var's to a local scope of "tpl.vm".

      Current approach of adding vars to a parent template above pollutes global namespace.

      Attachments

        Activity

          People

            Unassigned Unassigned
            serg472 Sergiy Kovalchuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: