Velocity
  1. Velocity
  2. VELOCITY-281

passing local variables and velocimacros with #parse()

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.4
    • Fix Version/s: 2.x
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other

      Description

      Let's say I have "velocimacro.permissions.allow.inline.local.scope = true".
      It would still be nice to be able to pass variables and velocitymacros to a
      template imported by #parse(). E.g., #parse("foo.vm" $myvar #mymacro) could make
      $myvar and #mymacro accessible to "foo.vm" when it's parsed.

        Activity

        Marcus Sundman created issue -
        Jeff Turner made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 30107 12315151
        Will Glass-Husain made changes -
        Fix Version/s 1.6 [ 12310290 ]
        Bugzilla Id 30107
        Assignee Velocity-Dev List [ velocity-dev@jakarta.apache.org ]
        Component/s Anakia [ 12310211 ]
        Component/s Source [ 12310214 ]
        Environment Operating System: other
        Platform: Other
        Operating System: other
        Platform: Other
        Description Let's say I have "velocimacro.permissions.allow.inline.local.scope = true".
        It would still be nice to be able to pass variables and velocitymacros to a
        template imported by #parse(). E.g., #parse("foo.vm" $myvar #mymacro) could make
        $myvar and #mymacro accessible to "foo.vm" when it's parsed.
        Let's say I have "velocimacro.permissions.allow.inline.local.scope = true".
        It would still be nice to be able to pass variables and velocitymacros to a
        template imported by #parse(). E.g., #parse("foo.vm" $myvar #mymacro) could make
        $myvar and #mymacro accessible to "foo.vm" when it's parsed.
        Henning Schmiedehausen made changes -
        Bugzilla Id 30107
        Component/s Source [ 12310214 ]
        Component/s Engine [ 12311337 ]
        Nathan Bubna made changes -
        Resolution Won't Fix [ 2 ]
        Fix Version/s 1.6 [ 12310290 ]
        Fix Version/s 2.0 [ 12310291 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Mark Thomas made changes -
        Workflow jira [ 12325156 ] Default workflow, editable Closed status [ 12551788 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551788 ] jira [ 12552612 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Marcus Sundman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development