Skip to content

Is it / will it be possible to dynamically load modules from URIs? #4

Description

@cristiano-belloni

The question can be rephrased as: will you ever implement a loader in Sheperd? Be it a watered-down Harmony modules loader or something fancy like this pseudocode:

var modules = [name: 'plugin_one', url: 'http://example.com/plugin_one.js',
                       name: 'plugin_two', url: 'http://example.com/plugin_two.js'];

for (var i = 0; i < modules.length; i+=1) {
    var module_obj  = module(modules[i].name).at(modules[i].url);
    // The modules have a common interface and will export the function doSomething
    module_obj.doSomething ();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions