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 -
        Hide
        Will Glass-Husain added a comment -

        thanks for reporting this – we'll investigate. just to confirm, did you actually test that bit of VTL?

        WILL

        Show
        Will Glass-Husain added a comment - thanks for reporting this – we'll investigate. just to confirm, did you actually test that bit of VTL? WILL
        Hide
        Bjoern Guenzel added a comment -

        Yes, I tested it.

        Show
        Bjoern Guenzel added a comment - Yes, I tested it.
        Will Glass-Husain made changes -
        Field Original Value New Value
        Fix Version/s 1.5 [ 12310253 ]
        Hide
        Henning Schmiedehausen added a comment -

        You know, if you have some time, it would be great if you could take a look at

        http://people.apache.org/~henning/velocity/pdf/VelocityUsersGuide.pdf (Chapter 3.4)
        or
        http://people.apache.org/~henning/velocity/html/ch03s04.html

        and proof-read it. I did test all examples in there and I'd really appreciate feedback. Thanks.

        Show
        Henning Schmiedehausen added a comment - You know, if you have some time, it would be great if you could take a look at http://people.apache.org/~henning/velocity/pdf/VelocityUsersGuide.pdf (Chapter 3.4) or http://people.apache.org/~henning/velocity/html/ch03s04.html and proof-read it. I did test all examples in there and I'd really appreciate feedback. Thanks.
        Hide
        Will Glass-Husain added a comment -

        reassigning this to 1.6 so we can track this. but I think it won't matter if we get the updated guide out with its new examples.

        Show
        Will Glass-Husain added a comment - reassigning this to 1.6 so we can track this. but I think it won't matter if we get the updated guide out with its new examples.
        Will Glass-Husain made changes -
        Fix Version/s 1.5 [ 12310253 ]
        Fix Version/s 1.6 [ 12310290 ]
        Hide
        Nathan Bubna added a comment -

        fixed in trunk for 1.6

        Show
        Nathan Bubna added a comment - fixed in trunk for 1.6
        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