title: pass variable from php to html / js
body: <p>So I have a JavaScript that returns an output variable looking like this:</p>
  
  <pre><code>&lt;script id="cat-template" type="text/x-handlebars-template"&gt;
      &lt;div class="chart"&gt;
          &lt;h2&gt;{{Name}}&lt;/h2&gt;
          &lt;h3 style="color:#ff0099;font-size:250%"&gt; {{Status}}&lt;/h3&gt;
  
  &lt;/script&gt;
  </code></pre>
  
  <p>What I would like to do is have it as a part of this php snippet:</p>
  
  <pre><code>&lt;?php
      $status = {{Status}};
      if ($status = "1") {
          echo "Good day, bud!";}
      else {
          echo "Good night, pal!";}
  ?&gt;
  </code></pre>
  
  <p>the <code>{{Status}}</code> doesn't work in the php snippet.</p>
  
  <p>Any thoughts?</p>