title: How can I get data from a .json file in Handlebars.js without using {{#each}} or {{#if}}?
body: <p>I've been using <code>{{#each}}</code> and <code>{{#if}}</code> in handlebars.js to grab data from JSON files. But I need a way to get the data without any conditions. I have no need for an <code>{{#if}}</code> statement and there's only one set of data so I don't need <code>{{#each}}</code> either. Is there a way to do this? <code>{{#each}}</code> works but I don't want to be using that if there's a simpler method to get a single block of data.</p>
  
  <p>I should note that I'm using Grunt with Handlebars and that my document calls from more than just one JSON file.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>  {{data.PaymentMethod}}
    &lt;table&gt;
    &lt;tr&gt;
      &lt;td&gt;
        &lt;div&gt;Payment Method&lt;/div&gt;
        &lt;div&gt;Card Number: {{CardNumber}}&lt;/div&gt;
        &lt;div&gt;Card Colder: {{CardHolder}}&lt;/div&gt;
        &lt;div&gt;&lt;a href="{{Link}}"&gt;Tracking&lt;/a&gt;&lt;/div&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
  </code></pre>
  
  <p>And this is my JSON file (<code>data.json</code>).</p>
  
  <pre><code>{
  "PaymentMethod": [
          {
              "CardNumber": "****",
              "CardHolder": "John Doe",
              "Link": "http://www.test.com"
          }
      ]
  }
  </code></pre>