Hi,
I am new to using Apache Velocity. What is the correct way of returning a
string from a Macro or a Velocimacro?
Since I did not have a clue on how to return a string from a Macro, I decided
to do something like
#macro(query_url $query_param) q=$query_param #end
I can then call the
Hi,
I am new to
Velocity and I am wondering what Velocimacro with a Body means?
Here, I am referring to the description in
of you,
O. O.
- Messaggio originale -
Da: Alex Fedotov a...@kayak.com
A: Velocity Users List user@velocity.apache.org; O. Olson olson_...@yahoo.it
Cc: Nathan Bubna nbu...@gmail.com
Inviato: Mercoledì 7 Agosto 2013 16:25
Oggetto: Re: What does Velocimacro with a Body mean?
It does
()#end
Simply doing:
#macro(my_trim)$!bodyContent.trim()#end
Does not work.
Thanks again,
O. O.
- Messaggio originale -
Da: Erik Hatcher erik.hatc...@gmail.com
A: Velocity Users List user@velocity.apache.org; O. Olson olson_...@yahoo.it
Cc: Sergiu Dumitriu sergiu.dumit...@gmail.com; Alex
Hi,
I am wondering if there is any documentation on writing your own Utility
Class or Custom Tool to add to Velocity. The only place I found some help is
http://www.sergiy.ca/how-to-create-custom-tools-for-apache-velocity/ (There is
something regarding Custom Tools at
Thank you Sergiu for your quick response. I think what I
wanted was really a Plain Old Java Object to be placed in the Velocity Context.
Regarding this Object placed in the Velocity Context:
1. 1. Would
this Object be instantiated each time a new request is placed? i.e. does this
need
-
Da: O. Olson olson_...@yahoo.it
A: Velocity Users List user@velocity.apache.org
Cc:
Inviato: Giovedì 8 Agosto 2013 12:29
Oggetto: Re: Documentation regarding Custom Utility Class for Velocity
Thank you Sergiu for your quick response. I think what I
wanted was really a Plain Old Java Object
originale -
Da: Nathan Bubna nbu...@gmail.com
A: Velocity Users List user@velocity.apache.org; O. Olson olson_...@yahoo.it
Cc:
Inviato: Giovedì 8 Agosto 2013 14:06
Oggetto: Re: Documentation regarding Custom Utility Class for Velocity
If you are putting the MyUtil class into the context