title: How to shorten long require list for backbone router
body: <p>I've started a JavaScript application using Backbone.js and Require.js. The application displays different top-level views - searching items, editing different aspects of items, connecting items to each other. Each view is displayed exclusively.</p>
  
  <p>The file for the router module looks like this:</p>
  
  <pre><code>define([
    'backbone',
    'myapp' 
    'views/search',
    'views/edit1', 
    'views/edit2', 
    'views/connect'], 
  function(Backbone, App, SearchView, EditView1, Editview2, ConnectView) {
  
    return Backbone.Router.extend({
      routes: {
        "search": "doSearch",
        "edit1":  "doEdit1",
        // more routes here
      },
      doSearch: function() {
        App.main.show(new SearchView()); // Marionette.js regions
      },
      doEditView1: function() {
        App.main.show(new EditView1());
      },
      // etc.
    });
  });
  </code></pre>
  
  <p>In my code there are much more views. Is there a way to cut down the long require list of views to one object? Maybe through another architecture or some require.js trick?</p>
  
  <p>Maybe I'm too influenced by the Symfony 2 concept of what a "router" is?</p>