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

Modify escape behavior in strict mode

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: Engine
    • Labels:
      None

      Description

      provides another property 'runtime.references.strict.escape' that when true modifies the behavior of escaping a reference when in strict mode, see discussion VELOCITY-618. The behavior is a as follows:

      $abc = <exception> - If $abc is not defined
      \$abc = $abc
      $abc = <exception> - If $abc is not defined
      \\\$abc = \$abc

      The backslash in front of a reference always prevents that reference from being evaluated, and the backslash is removed. This is true wether a reference is in the context or not.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                byronvf Byron Foster
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: