You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Geir Magnusson Jr." <gm...@xyris.com> on 2000/11/06 14:15:45 UTC

Re: Parser update

Gunnar wrote :

>"Geir Magnusson Jr." <ge...@optonline.net> writes:
>>
>> #set $foo = "woogie"
>> \$foo => $foo
>> \$bar => $bar
>>

>So what about escaping the backslash itself ? Let's say I want the
>following output by accessing $foo :

>"\woogie"

That's true.

No coffee nor focuse yet on my end, but ->Proposal : when you want to escape
a valid reference or directive, put the \ between the ( '$' | '#' ) and the
indentifier :

$\foo
#\foreach

That should work... then you can do  \$foo with nary aforethought.

geir