[xwiki-users] Groovy syntax for $xwiki.jsfx.use
Hi, Xwiki developer guide specifies that front-end resources can be added from wiki page using the volicity syntax (for example): {{velocity}} $xwiki.jsfx.use(js/scriptaculous/slider.js) {{/velocity}} Is there an equivalent using groovy, I mean for method call $xwiki.jsfx.use() ? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Groovy syntax for $xwiki.jsfx.use
All of the groovy bindings are the same as the velocity ones http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HBindings So in your case you'll want xwiki.get('jsfx').use() Note that xwiki.jsfs is a language-provided alias to xwiki.get('jsfx') In some scripting languages you will need to use the real syntax. Thanks, Caleb On 05/09/2014 11:35 AM, Nicolas Jouanin wrote: Hi, Xwiki developer guide specifies that front-end resources can be added from wiki page using the volicity syntax (for example): {{velocity}} $xwiki.jsfx.use(js/scriptaculous/slider.js) {{/velocity}} Is there an equivalent using groovy, I mean for method call $xwiki.jsfx.use() ? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Groovy syntax for $xwiki.jsfx.use
Thanks for your help, I missed that. Le 9 mai 2014 à 11:46, Caleb James DeLisle c...@cjdns.fr a écrit : All of the groovy bindings are the same as the velocity ones http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HBindings So in your case you'll want xwiki.get('jsfx').use() Note that xwiki.jsfs is a language-provided alias to xwiki.get('jsfx') In some scripting languages you will need to use the real syntax. Thanks, Caleb On 05/09/2014 11:35 AM, Nicolas Jouanin wrote: Hi, Xwiki developer guide specifies that front-end resources can be added from wiki page using the volicity syntax (for example): {{velocity}} $xwiki.jsfx.use(js/scriptaculous/slider.js) {{/velocity}} Is there an equivalent using groovy, I mean for method call $xwiki.jsfx.use() ? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users