Commit f465f8561d5f4917e7c36806a28ef35714357cfc

  • avatar
  • arvind
  • Fri Aug 29 16:13:41 IST 2014
Adding backbone router for the application.
  • Diff rendering mode:
  • inline
  • side by side

swtr/static/js/swtmaker.js

720 }720 }
721 }721 }
722 };722 };
723
724 //swtr.AppView = AppView;723 //swtr.AppView = AppView;
725724
725 var AppRouter = Backbone.Router.extend({
726 routes: {
727 'home': 'home',
728 'linked-data': 'linkedData',
729 'play': 'play',
730 'search-external': 'search'
731 },
732 home: function() {
733 },
734 linkedData: function() {
735 },
736 play: function() {
737
738 },
739 search: function() {
740 }
741 });
742 new AppRouter();
743 Backbone.history.start();
726})(swtr);744})(swtr);