I use a banking site that uses random subdomains...web1.mybank.com, web2.mybank.com. I wanted to just have ~/.js/mybank.com.js and have it apply to any subdomain. This patch will do that. Given a url of /web1.mybank.com.js it will try to return [default.js, mybank.com.js, web1.mybank.com.js] in that order.
[default.js, mybank.com.js, web1.mybank.com.js]
It also includes my attempt at hacking in some unit tests for the daemon.
I think this would also resolve issue #20.
serves all js files for the given domain
if sub.domain.com is requested this will serve default.js,
domain.com.js, and sub.domain.com.js for any that are available
default the port when not passed
+1. I like to browse @waferbaby's usesthis.com and it makes extensive use of subdomains. I'd love to have usesthis.com.js apply to all subdomains of this site.
Added in 047e2bf