Velocity
  1. Velocity
  2. VELOCITY-808

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

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • 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.

        Activity

        Sergiy Kovalchuk created issue -

          People

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

            Dates

            • Created:
              Updated:

              Development