title: Pass variable from ajax to jade/pug
body: <p>Am obtaining the values from nodejs via ajax/fetch and need to pass the same to Pug.
  Any help here would be much appreciated</p>
  
  <pre><code>sample.pug
        button#searchVal Search
        script(type='text/javascript', src='/lib/onClick.js')
        br
        br
        table#table(div='')
          each row in slaJobs
           tr
            th#cbs-tab-header(div='') !{row.jobname}
            th#cbs-tab-header(div='') !{row.job_type}
            th#cbs-tab-header(div='') !{row.autosys_instance}
  
  dummy.js
  
      .then(function(data) {
        console.log(data.jobsHeader)
        console.log(data.slaJobs)
         })
  
  </code></pre>
  
  <p><strong>Need to set value of data.slaJobs from js to slaJobs of Pug</strong></p>