You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Will Glass-Husain (JIRA)" <ji...@apache.org> on 2006/09/13 01:02:22 UTC
[jira] Commented: (VELOCITY-251) $\!{foo} doesn't render as
expected
[ http://issues.apache.org/jira/browse/VELOCITY-251?page=comments#action_12434308 ]
Will Glass-Husain commented on VELOCITY-251:
--------------------------------------------
>From the mailing list (excerpt)
---------- Forwarded message ----------
From: sun davy <aw...@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.
...
> $\!{foo} doesn't render as expected
> -----------------------------------
>
> Key: VELOCITY-251
> URL: http://issues.apache.org/jira/browse/VELOCITY-251
> Project: Velocity
> Issue Type: Bug
> Components: Source
> Affects Versions: 1.5
> Environment: Operating System: other
> Platform: Other
> Reporter: JiaYun
> Fix For: 1.5
>
>
> Aaccording to the User Guide, "$\!{foo}" should render as "$!{foo}", but the
> actual output is "$!{" whether $foo was defined or not.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org