No description, website, or topics provided.
Java
Pull request Compare This branch is 13 commits ahead of npiguet:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/java/org/stjs/bridge/requirejs
.gitignore
README.md
pom.xml

README.md

Strongly-Typed Javascript (STJS) Bridge to RequireJS

The STJS bridge to Require.js gives you access to this great library using a Java syntax.

Creating a plugin with This STJS bridge

RequireJSGlobal.define(new RequireJSPlugin() {
    {
        load = (String name, RequireJSNamespace parentRequire, Onload onload, Object config) -> {
            //req has the same API as require().
            parentRequire.$invoke($array(name), (value) -> {
                onload.$invoke(value);
            });
        };
    }
});