Guest User

Untitled

a guest
Apr 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Backbone.LayoutManager.configure({
  2.     fetch: function(path){
  3.         return 'aaaa';
  4.     },
  5.     render: function(template, context) {
  6.         return _.template(template)(context);
  7.     },
  8. });
  9.  
  10. // router.init
  11. initialize: function(){
  12. //  .....
  13.     var layout = new Backbone.LayoutManager({
  14.         name: 'layout',
  15.         views: {
  16.             navigation: new View_Navigation({model: self.user}),
  17.         },
  18.     });
  19.     layout.render(function(el) {
  20.         $("body").html(el);
  21.     });
Add Comment
Please, Sign In to add comment