Skip to content

Instantly share code, notes, and snippets.

@davepermen
Created April 8, 2013 10:23
Show Gist options
  • Save davepermen/5335780 to your computer and use it in GitHub Desktop.
Save davepermen/5335780 to your computer and use it in GitHub Desktop.
this.get(/^\/([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])([\w\!\?-]+)?$/, function (context, year, month, day) {
sandbox.publish('statechange', '/events', { name: year + '-' + month + '-' + day });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment