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

Add new directive #evaluate

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5 beta2
    • 1.6
    • Engine
    • None

    Description

      On a separate issue (VELOCITY-504) we came up with the idea of a new directive, #evaluate. Basically, it would act just like Velocity.evaluate().

      Users are always asking for this capability (internal evaluation). Usually we tell them to "use a tool". Instead, we should just put in a simple directive that would evaluate a VTL string using the current context.

      Incidentally, this should be the current local context, e.g. if inside a macro or a foreach loop (or worse, both) it should use that context. See VELOCITY-504 for why this is needed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wglass William Glass-Husain
              Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: