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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: Engine
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: