Hi Is there a way to embed groovy code into a velocity macro? I am trying to do some string manipulation with groovy pattern matching/replacement. If there is a better way let me know! Thank you. Marc Lijour P Avez-vous vraiment besoin d'imprimer ce courriel? Do you really have to print this email?
Yes, it's new and very useful : you have 2 ways to do it : #set($myObj = $xwiki.parseGroovyFromString("Your groovy class")) or pageName is a page with a class in groovy. #set($myObj = $xwiki.parseGroovyFromPage(pageName)) it returns an object generated from the groovy class. jeremi On 11/30/06, Lijour, Marc (EDU) <Marc.Lijour@ontario.ca> wrote:
Hi
Is there a way to embed groovy code into a velocity macro?
I am trying to do some string manipulation with groovy pattern matching/replacement. If there is a better way let me know!
Thank you.
Marc Lijour P Avez-vous vraiment besoin d'imprimer ce courriel? Do you really have to print this email?
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- jeremi
participants (2)
-
jeremi joslin -
Lijour, Marc (EDU)