OK
I however have another question on that topic.
As a Java dev, I'm quite fond of Webjars as they provide me a way to
make sure which version of a Javascript I use.
I've seen that XWiki can integrate webjars
(
)
but, as far as I understand, it's only available when writing extensions ...
When writing that, I realize the same question can be asked about Groovy
: if I try to use a dependency using Groovy grapes, will it work ? It
seems to me it won't work, but can anyone confirm ?
Le 23/03/2015 17:09, Eduard Moraru a écrit :
  Hi Nicolas,
 Typically, the flow is the following:
 1. You create a page and the markup (wiki syntax + additional HTML if you
 need form UI elements or if you can not reuse property displayers from
 velocity, e.g. $doc.display('someProperty', 'edit') [1] )
 2. You add a skin extension [2] object to that document where you add your
 CSS and JS needs
 3. Inside that JSX object you can depend on 3rd party libraries using the
 recommended require.js approach [3] or anything else that suites you
 4. Profit
 More such information is available on the dev guide's tutorials and
 resources page [4].
 Hope this helps,
 Eduard
 P.S.: Regarding javascript, be aware that we are currently moving away from
 Prototype.js and towards jQuery, but a lot of documentation still talks
 about how to do things with Prototype.js, you just need to digg deep enough
 to find the jQuery alternatives, figure them out, ask people for help and,
 document back your findings (on 
xwiki.org pages) so that you can help
 others in your same situation :)
 ----------
 [1] 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/API
 [2]
 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Skin+Extension+Plugin
 [3]
 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HRequireJSa…
 [4] 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/
 On Mon, Mar 23, 2015 at 5:33 PM, Nicolas Delsaux <nicolas.delsaux(a)gmx.fr>
 wrote:
  I would like to create a Javascript application
in XWiki.
 My precise goal is to go get some content from Jenkins (build status) and
 render it over a static image using d3.js or any other rich rendering
 framework.
 I suppose the only way to implement that is to write my webpage as HTML.
 But, then, how will I use external frameworks ? (typically d3.js)
 Thanks
 --
 Nicolas Delsaux
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users
  _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users