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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.6
    • Documentation
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: