Skip to content

Instantly share code, notes, and snippets.

Created June 25, 2013 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5856987 to your computer and use it in GitHub Desktop.
Save anonymous/5856987 to your computer and use it in GitHub Desktop.
#! doesn't work
'!/blog/post/':{
'/:year':{
'/:month' :{
'/:day' : {
'/:post' :{
on: function(year,month,day,post){load_post(socket,{year:year,month:month,day:day,post:post});}
},
on: function(year,month,day){load_post(socket,{year:year,month:month,day:day})}
},
on: function(year,month){load_post(socket,{year:year,month:month})}
},
on: function(year){load_post(socket,{year:year})}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment