Just wondering if there is anyway to specify a parameter as optional in a sammy js route.
I\'ve seen somewhere that you can use
route/:foo/?:bar
this.get('#/product/(:id)?', function(context) { var id = this.params['id']; context.app.swap(''); context.render('templates/product.template', {base_url:base_url}) .appendTo(context.$element()).then(function () {loadProduct();}); });