title: How to set a global variable in an ember JS application
body: <p>Before my Ember application boots, I would like to dynamically set a variable depending the URL: </p>
  
  <pre><code>// Dummy example
  if (window.location.hostname == 'awesomewebsite.com') {
    // Set a "global variable" called town
  }
  </code></pre>
  
  <p>I want to have the possibility to rely on that variable to do some stuff afterwards (in a component, template and so on).</p>
  
  <p>What will be the best way to do that ?</p>