SlexAxton/yepnope.js — pull request #110 by KenPowers (2012-04-12 04:42:48+00:00)
Title: Base URL Feature

Added a feature to allow base urls for loading. On the yepnope.js web page there is a sample as follows:

yepnope({
load: ["https:/­/my-cdn.com/jquery.min.js?v=1.7.1", "https:/­/my-cdn.com/jquery-ui.min.js?v=1.8.16"],
// ...
});

This can now be expressed as follows:

yepnope({
base: "https://my-cdn.com/",
load: ["jquery.min.js?v=1.7.1", "jquery-ui.min.js?v=1.8.16"],
// ...
});

I have also added several tests to make sure everything is working. I have changed the version of Express.js to 2.5.9 because 2.4.7 wasn't working with my version of node. All tests still pass.