title: link a var to an object property
body: <p>In a file called <code>controllers.js</code>, I've got these variables :</p>
  
  <pre><code>var indexCtrl           = require('./index'),
      offerCtrl           = require('./offer'),
      setLocaleCtrl       = require('./setLocale'),
      specificationsCtrl  = require('./specifications');
  </code></pre>
  
  <p>and this object :</p>
  
  <pre><code>var routes = {
      indexCtrl: {
          'fr-FR' : '/accueil',
          'en-EN' : '/home',
          'de-DE' : '/startseite'
      },
      offerCtrl: {
          'fr-FR' : '/offre',
          'en-EN' : '/offer',
          'de-DE' : '/angebot'
      },
      setLocaleCtrl: {
          'fr-FR' : '/setLocale/:locale',
          'en-EN' : '/setLocale/:locale',
          'de-DE' : '/setLocale/:locale'
      },
      specificationsCtrl: {
          'fr-FR' : '/specifications',
          'en-EN' : '/specifications-en',
          'de-DE' : '/spezifikationen'
      }
  };
  </code></pre>
  
  <p>For example, the required index.js : </p>
  
  <pre><code>'use strict';
  
  var IndexModel = require('../models/index');
  
  exports.route = function(req, res, locale) {
    console.log(locale);
    var model = new IndexModel();
    res.render('index', model);
  };
  </code></pre>
  
  <p>What can I do to use the indexCtrl defined in the <code>var route</code> as the indexCtrl defined above (with the require) ?</p>
  
  <p>EDIT :
  For example :</p>
  
  <pre><code>for (var ctrl in routes) {
      var ctrlContent = routes[ctrl];
      for (var language in ctrlContent) {
          var route = ctrlContent[language];
          //router.get(route, ctrl);
          console.log('%s, %s, %s', ctrl, language, route);
      }
  }
  </code></pre>
  
  <p>The log displays :</p>
  
  <pre><code>indexCtrl, fr-FR, /accueil
  indexCtrl, en-EN, /home
  indexCtrl, de-DE, /startseite
  offerCtrl, fr-FR, /offre
  offerCtrl, en-EN, /offer
  offerCtrl, de-DE, /angebot
  setLocaleCtrl, fr-FR, /setLocale/:locale
  setLocaleCtrl, en-EN, /setLocale/:locale
  setLocaleCtrl, de-DE, /setLocale/:locale
  specificationsCtrl, fr-FR, /specifications
  specificationsCtrl, en-EN, /specifications-en
  specificationsCtrl, de-DE, /spezifikationen
  </code></pre>
  
  <p>That way, I know that the route <code>/accueil</code> has to be rendered in the locale fr-FR by the controller indexCtrl. But if I try to use <code>ctrl.route</code> -for example indexCtrl.route- which is defined in the require, I get an error : <code>Route.get() requires callback functions but got a [object Undefined]</code>.</p>