Hi Ricardo,

> On 15 Feb 2017, at 09:02, [IDIS Technical Secretariat] Ricardo Rodríguez 
> <ricardo.rodrig...@idisantiago.es> wrote:
> 
> Hi! After many years surviving with Velocity scripts, it is time to enjoy
> Groovy's magic! :-)

Great! :)

> Both XWiki sites and the web, in general, are crowded with sites/pages with
> plenty of Groovy tutorials and manuals, but it would be great to have some
> simple examples to helping understand the similarities and differences
> between Velocity and Groovy.
> 
> Please, is there any XWiki resource explaining, for instance, how to
> achieve the same results shown in these sections by using Groovy?

There’s this doc that you may or may not have seen already:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting

Please check in this doc the limitations of using groovy (programming rights).

It’s easy to convert a velocity script in groovy in general since the bindings 
are the same and all the API calls are actually calls on java objects and thus 
are the same from all scripting languages.

Let us know if you have specific questions.

Thanks
-Vincent

> http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsinapage
> 
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsfromanypageandloopoverallobjectsofsameClass
> 
> Thanks for your help!
> 
> Ricardo
> -- 
> Ricardo Rodríguez
> Research Management and Promotion Technician
> Technical Secretariat
> Health Research Institute of Santiago de Compostela (IDIS)
> http://www.idisantiago.es

Reply via email to