You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by SunYi <su...@gmail.com> on 2007/07/17 18:54:39 UTC

[Velocity User Guide]Mistake Report

Hello Velocity Developers,
	I think there is a mistake in the page:
	http://velocity.apache.org/engine/devel/user-guide.html
	
	In the "Escaping Valid VTL References "
section(http://velocity.apache.org/engine/devel/user-guide.html#escapingvali
dvtlreferences).

	Isn't the "\\\$email" should be render as "\\$email " as you explain
the bind-from-left rule later?

Original Text quotation:
	## The following line defines $email in this template:
	#set( $email = "foo" )
	$email
	\$email
	\\$email
	\\\$email
	renders as 

	foo
	$email
	\foo
	\$email
Note that the \ character bind to the $ from the left. The bind-from-left
rule causes \\\$email to render as \\$email. Compare these examples to those
in which $email is not defined. 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


Re: [Velocity User Guide]Mistake Report

Posted by Will Glass-Husain <wg...@gmail.com>.
Hi Sun Yi--

Thanks for reporting this.  We're in the process of issuing a rewrite (with
the next release) of the user guide-- I'll double check this is fixed.

Best, WILL

On 7/17/07, SunYi <su...@gmail.com> wrote:
>
> Hello Velocity Developers,
>         I think there is a mistake in the page:
>         http://velocity.apache.org/engine/devel/user-guide.html
>
>         In the "Escaping Valid VTL References "
> section(
> http://velocity.apache.org/engine/devel/user-guide.html#escapingvali
> dvtlreferences).
>
>         Isn't the "\\\$email" should be render as "\\$email " as you
> explain
> the bind-from-left rule later?
>
> Original Text quotation:
>         ## The following line defines $email in this template:
>         #set( $email = "foo" )
>         $email
>         \$email
>         \\$email
>         \\\$email
>         renders as
>
>         foo
>         $email
>         \foo
>         \$email
> Note that the \ character bind to the $ from the left. The bind-from-left
> rule causes \\\$email to render as \\$email. Compare these examples to
> those
> in which $email is not defined.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>


-- 
Forio Business Simulations

Will Glass-Husain
wglass@forio.com
www.forio.com