Skip to content

Need to expose RDF-REST-JS in the AMD RequireJS way #5

@StatelessCat

Description

@StatelessCat

We want to use RDF-REST-JS in a browser with something like :

require.config({
    paths: {
        rdfrestjs: "../components/rdf-rest-js/browserified/rdfrestbundle"
    }
});

define(["rdfrestjs"], function(rdfrestjs) {
    var bc = rdfrestjs.coreFactory.getCore("http://localhost:8080/api/user/54d357ea2f6af8e974000001");
    // use the Core...
}

We can keep the browserifyied version for the beginning, but need to expose factories in the AMD RequireJS way.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions