Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Backbone.LayoutManager.configure({
- fetch: function(path){
- return 'aaaa';
- },
- render: function(template, context) {
- return _.template(template)(context);
- },
- });
- // router.init
- initialize: function(){
- // .....
- var layout = new Backbone.LayoutManager({
- name: 'layout',
- views: {
- navigation: new View_Navigation({model: self.user}),
- },
- });
- layout.render(function(el) {
- $("body").html(el);
- });
Add Comment
Please, Sign In to add comment