title: How to access global variables in Meteor template without using a helper?
body: <p>I have all my image files served from a different domain, and I put that host name as a variable into Meteor.settings. Then, how can I access this variable within a Meteor template?</p>
  
  <p>For example, in this template, what's the best practice to replace <code>img.example.com</code> with a variable defined in Meteor.settings or some other global variables? I don't think it's a good idea to pass it to every template by using helpers.</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>&lt;template name="products"&gt;
    {{#each items}}
      &lt;img src="http://img.example.com/{{id}}.png"&gt;
    {{/each}}
  &lt;/template&gt;
  </code></pre>