Velocity
  1. Velocity
  2. VELOCITY-455

Error in chapter "Escaping VTL Directives" in the User Guide

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.6
    • Component/s: Documentation
    • Labels:
      None

      Description

      the manual says

      Consider the following case:
      #if( $jazz )
      Vyacheslav Ganelin
      #end

      Whether $jazz is true or false, the output will be
      #if($ jazz )
      Vyacheslav Ganelin
      #end

      However, since the #if is escaped, $jazz will be evaluated, to the output will be

      #if(true)
      Vyacheslav Ganelin
      #end

      or

      #if(false)
      Vyacheslav Ganelin
      #end

      respectively (depending on the value of $jazz)

        Activity

        Bjoern Guenzel created issue -
        Will Glass-Husain made changes -
        Field Original Value New Value
        Fix Version/s 1.5 [ 12310253 ]
        Will Glass-Husain made changes -
        Fix Version/s 1.5 [ 12310253 ]
        Fix Version/s 1.6 [ 12310290 ]
        Nathan Bubna made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12382790 ] Default workflow, editable Closed status [ 12551483 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551483 ] jira [ 12552153 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Bjoern Guenzel
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development