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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: