Skip to content

Instantly share code, notes, and snippets.

@a-ignatov-parc
Created March 15, 2012 00:39
Show Gist options
  • Save a-ignatov-parc/2040742 to your computer and use it in GitHub Desktop.
Save a-ignatov-parc/2040742 to your computer and use it in GitHub Desktop.
routes: {
'': 'index',
'edit': 'edit',
'index': 'index',
'index/:params': 'index',
'form': 'options',
':page': 'processWrongRoute'
},
initialize: function(initData) {
var reg = /^[^:\/]+/,
bindedList = {};
this.initParams = initData.CreateParams;
Calc
.registerRouteLevel('project')
.set('Options', {
model: Calc.Models.Pages
});
},
index: function(params) {
// Роут для рутовых урлов
},
project: {
index: function(params) {
// Роут для урлов уровня project
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment