nitdoc: introduce require.js a JS module loader
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 18 Feb 2014 23:21:09 +0000 (18:21 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 20 Feb 2014 19:11:57 +0000 (14:11 -0500)
commit7a6af355a01322e77af531d614155f85898caef9
tree51870267ab704ae1db3eb077c56d918078fb9456
parentec094a6de107a448a8158f3327d0a651305ebfd9
nitdoc: introduce require.js a JS module loader

require.js is an open-source implementation of the
Javascript AMD API.

The Asynchronous Module Definition (AMD) API specifies
a mechanism for defining modules such that the module and
its dependencies can be asynchronously loaded.

This is particularly well suited for the browser environment
where synchronous loading of modules incurs performance.

require.js also includes cache control on client side.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

Conflicts:
src/nitdoc.nit
share/nitdoc/js/lib/require.js [new file with mode: 0644]
share/nitdoc/js/nitdoc.js [new file with mode: 0644]
src/nitdoc.nit
tests/sav/nitdoc_args1.res