Add basepath property
It'd be useful to have a basepath property for handling the cases where the site/app is not under the root dir "/", but instead a subfolder of any level.
i did a quick hack on my hash file: https://github.com/hems/ways-browser/blob/hash-hack/src/hash.coffee i expect the user to set window.location.base_path before calling ways-browser, like this:
ways = require('ways'); window.location.base_path = '/my_folder/' ways.use require('ways-browser')
maybe when calling, ways.use require('ways-browser') we could pass an extra object for parameters to avoid this window.dirtyness
Hello!
Would be good to fix this. I have been looking myself into it and manage to fix it, but not sure if it is the best practice, and if it won't break other stuff.
Any ideas?