zcatalyst-cli
Version:
Command Line Tool for CATALYST
55 lines (53 loc) • 2.29 kB
JavaScript
Lyte.Router.registerRoute('index',{
// getResources : function (paramsObject ){
// /* View related files should be returned as resources(HTML, CSS, components etc). It will be available before 'renderTemplate' hook. */
// },
// getDependencies : function (paramsObject ){
// /* Files returned as dependencies will be downloaded at once and will be available before 'beforeModel' hook. */
// },
// beforeModel : function (paramsObject ){
// /* Pre processing stage where you can decide whether to abort/redirect the current transition(e.g Permission check). */
// },
model : function() {
return {
features : [
{module : 'Router',url : 'http://lyte/2.0/doc/route/introduction'},
{module : 'Components',url : 'http://lyte/2.0/doc/components/introduction'},
{module : 'Data',url : 'http://lyte/2.0/doc/data/introduction'},
{module : 'CLI',url : 'http://lyte/2.0/doc/cli/introduction'}
]
}
},
// afterModel : function (model, paramsObject ){
// /* Manipulating data before returning data to component. */
// },
// redirect : function (model, paramsObject ){
// /* Redirections based on data fetched. */
// },
renderTemplate : function() {
return {outlet : "#outlet",component : "welcome-comp"}
}
// afterRender : function (model, paramsObject ){
// /* Post processing of rendered page. */
// },
// beforeExit : function (model, paramsObject ){
// /* Will be invoked before a route is removed from view. */
// },
// didDestroy : function (model, paramsObject ){
// /* Will be invoked when a route is completly destroyed(remove residues of route. eg: file cache removal). */
// },
// actions : {
// onBeforeLoad : function (paramsObject ){
// /* Triggered once route transition starts. */
// },
// onError : function (error, pausedTrans, paramsObject ){
// /* Triggered by error on file load or on data request. */
// },
// willTransition : function (transition ){
// /* Triggered before a transition is going to change. */
// },
// didTransition : function (paramsObject ){
// /* Triggered after completion of transition. */
// },
// }
});