code: function(options) {
        var t = this;
        t.page = UI.pageView.options.model;
  
        // Build the template from the individual templates
        if (!sidebarTemplate) {
          sidebarTemplate = Template.fromDOM('#nm-template-SidebarView');
        }
  
        // Parse the sidebar from localstorage, and use the
        // default if anything goes wrong.
        try {
          t.sidebar = new Sidebar(JSON.parse(localStorage.sidebar));
        } catch (e) {}
        if (!t.sidebar) {
          t.sidebar = new Sidebar();
        }
  
        // Retain some references to the sidebar
        t.tree = t.sidebar.get('tree');
        t.branches = t.tree.get('branches');
        t.pages = t.branches.get('pages');
        t.tours = t.branches.get('tours').get('leaves');
  
        // If anything changes in the tree, save to localstorage
        t.sidebar.on('change', t.saveSidebar, t);
      }
docs: Constructor