Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.5
    • Fix Version/s: 2.x
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other

      Description

      Aaccording to the User Guide, "$!

      {foo}" should render as "$!{foo}

      ", but the
      actual output is "$!{" whether $foo was defined or not.

        Issue Links

          Activity

          Hide
          Will Glass-Husain added a comment -

          Thanks for reporting this.

          Show
          Will Glass-Husain added a comment - Thanks for reporting this.
          Hide
          Will Glass-Husain added a comment -

          From the mailing list (excerpt)

          ---------- Forwarded message ----------
          From: sun davy <aweisw@hotmail.com>
          Date: Sep 11, 2006 3:51 AM
          Subject: i encounter some mistakes in User Guide.
          To: velocity-user@jakarta.apache.org

          hi Velocity team:
          I am an user of Velocity from China. Thanks for your perfect production.
          Through your creative and hard work, we have such Convenience and Powerful
          tools in our toolbox.

          ...

          2) Advanced Issues: Escaping and !
          #set( $foo = "bar" )
          $!foo
          $!

          {foo}
          $
          !foo
          $\\\!foo

          This renders as:
          $!foo
          $!{foo}

          $!foo
          $
          !foo

          My output is:
          $!foo
          $!{
          $!foo
          $
          !foo
          i was confused.
          -------------------------------------------------------
          Contrast this with regular escaping, where \ precedes $:
          \$foo
          \$!foo
          \$!

          {foo}
          $!{foo}

          This renders as:
          \$foo
          \$!foo
          \$!

          {foo}
          \bar

          My output is:
          $foo
          $!foo
          $!{foo}

          \bar

          it seems like clerical error.

          ...

          Show
          Will Glass-Husain added a comment - From the mailing list (excerpt) ---------- Forwarded message ---------- From: sun davy <aweisw@hotmail.com> Date: Sep 11, 2006 3:51 AM Subject: i encounter some mistakes in User Guide. To: velocity-user@jakarta.apache.org hi Velocity team: I am an user of Velocity from China. Thanks for your perfect production. Through your creative and hard work, we have such Convenience and Powerful tools in our toolbox. ... 2) Advanced Issues: Escaping and ! #set( $foo = "bar" ) $!foo $! {foo} $ !foo $\\\!foo This renders as: $!foo $!{foo} $!foo $ !foo My output is: $!foo $!{ $!foo $ !foo i was confused. ------------------------------------------------------- Contrast this with regular escaping, where \ precedes $: \$foo \$!foo \$! {foo} $!{foo} This renders as: \$foo \$!foo \$! {foo} \bar My output is: $foo $!foo $!{foo} \bar it seems like clerical error. ...
          Hide
          Henning Schmiedehausen added a comment -

          This is a dup.

          Show
          Henning Schmiedehausen added a comment - This is a dup.

            People

            • Assignee:
              Unassigned
              Reporter:
              JiaYun
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development