[prev in list] [next in list] [prev in thread] [next in thread]
List: velocity-dev
Subject: DO NOT REPLY [Bug 28528] New: -
From: bugzilla () apache ! org
Date: 2004-04-22 1:42:36
Message-ID: 20040422014236.15592.qmail () nagoya ! betaversion ! org
[Download RAW message or body]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28528>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28528
Escaping in form of "$\!{foo}" does not work
Summary: Escaping in form of "$\!{foo}" does not work
Product: Velocity
Version: 1.4
Platform: PC
URL: http://jakarta.apache.org/velocity/user-
guide.html#Advanced%20Issues:%20Escaping%20and%20!
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Source
AssignedTo: velocity-dev@jakarta.apache.org
ReportedBy: omerlugov@hotmail.com
Below are the results of executing app_example1 with a modified "example.vm"
file. The content of the example.vm is a copy-paste from Velocity User's Guide
(see the URL). Note that "$\!{foo}" was rendered to "$!{", instead of "$!{foo}"
as expected:
D:\dev\velocity-1.4\examples\app_example1>type example.vm
#set( $foo = "bar" )
$\!foo
$\!{foo}
$\\!foo
$\\\!foo
D:\dev\velocity-1.4\examples\app_example1>example
Using classpath: .;..\..\bin\velocity-1.4.jar;..\..\bin\velocity-dep-1.4.jar
$!foo
$!{
$\!foo
$\\!foo
D:\dev\velocity-1.4\examples\app_example1>
Surprisingly, I could really use this feature :) as I want to evaluate my
template in two steps: cache the result of the first generic step and then
reuse it to generate various final messages.
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic