On Tue, Oct 21, 2014 at 5:36 PM, Guillaume "Louis-Marie" Delhumeau <[email protected]> wrote:
Update:
This the final form that I am going to commit: an AMD module called "xwiki-meta" that you can use this way:
require(['xwiki-meta'], function(xm) {
xm['document'];
xm.document will work too.
xm['wiki']; xm['space']; xm['page']; xm['version']; xm['restURL']; xm['form_token']; }
In consequence, javascript.vm will be modified this way: require.config({ paths: { // ... 'xwiki-meta': '$stringtool.removeEnd($xwiki.getSkinFile('js/xwiki/meta.js'), '.js')' // ... }, // ... });
If you have any objection, please answer before the release of 6.3 Milestone 2 (on monday).
No objection. Thanks, Marius
Thanks, Guillaume _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs