+1
Thanks,
Marius
On Fri, Apr 8, 2016 at 10:06 AM, Vincent Massol <vincent(a)massol.net> wrote:
Hi devs,
In order to fix
http://jira.xwiki.org/browse/XWIKI-13276, I’m proposing:
* Use Case 1: No wiki specified:
$services.webjars.url('org.xwiki.contrib:application-ckeditor-webjar',
'ckeditor.js’)
would generate:
/<context>/webjars/<currentWikiId>/application-ckeditor-webjar/1.4/ckeditor.js
* Use Case 2: Wiki specified:
$services.webjars.url('org.xwiki.contrib:application-ckeditor-webjar',
'ckeditor.js', {'wiki': 'mywiki’)
would generate
/<context>/webjars/mywiki/application-ckeditor-webjar/1.4/ckeditor.js
Generic format:
/<context>/webjars/<wikiId>/path/to/resource
WDYT?
I prefer this over having to deal with domain vs path-based; I also find
it more clear.
Thanks
-Vincent
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs