I. Create a Middleman project with middleman-ember-template
$ middleman init hello --template=ember
II. Install ember.js package
$ bower install ember
I. Create a Middleman project with middleman-ember-template
$ middleman init hello --template=ember
II. Install ember.js package
$ bower install ember
function parseUrl(str) { | |
var link = document.createElement('a'); | |
link.href = str; | |
// Parse query string. Strip leading ?, decode, and split | |
var pairs = /^\??(.*)/.exec(decodeURI(link.search))[1].split('&'); | |
// Split pairs and create object from tuples | |
var query = _.object(_.invoke(pairs, 'split', '=')); | |
// Other url properties to copy | |
var props = [ | |
'hash', |