title: how do I compile handlebars in SuiteCommerce Advanced?
body: <p>It seems that I am closer to getting this to work. I created a &quot;commercecategory&quot; module folder under my third_parties folder.</p>
  <p>I loaded the code onto the dev console and I am able to pull the commerce category record data; and changed the T/F values to True or False</p>
  <pre><code>var RecID  = nlapiGetRecordId(); /* get record ID */
  var docRec = nlapiLoadRecord(&quot;commercecategory&quot;,RecID); /* load commerce category record data */ //console.log(docRec);
  
  //get true and false responses from NS
  var PrimaryCatVal =  docRec.getFieldValue(&quot;custrecord1&quot;); if (PrimaryCatVal===&quot;T&quot;) { PrimaryCatVal = &quot;true&quot; }   else { PrimaryCatVal = &quot;false&quot; }
  var SeriesCatVal  =  docRec.getFieldValue(&quot;custrecord2&quot;); if (SeriesCatVal ===&quot;T&quot;) { SeriesCatVal  = &quot;true&quot; }   else { SeriesCatVal  = &quot;false&quot; }
  var SeriesCompVal =  docRec.getFieldValue(&quot;custrecord3&quot;); if (SeriesCompVal===&quot;T&quot;) { SeriesCompVal = &quot;true&quot; }   else { SeriesCompVal = &quot;false&quot; }
  
  console.log(PrimaryCatVal);
  console.log(SeriesCatVal);
  console.log(SeriesCompVal);
  </code></pre>
  <p>I now want to compile this, so that I can make the expressions</p>
  <pre><code>{{primarycat}} {{seriescat}} {{seriescomp}}
  </code></pre>
  <p>on the dev console, it says that there is no handlebars.compile function.</p>
  <pre><code>Uncaught ReferenceError: Handlebars is not defined
      at &lt;anonymous&gt;:14:16
  (anonymous) @ VM550:14
  </code></pre>
  <p>Do I have to approach compiling the data and template a certain way?</p>
  <p>I am considering using this <a href="https://codepen.io/svinkle/pen/emJqKO" rel="nofollow noreferrer">codepen</a> as a new base, could add the script to my category .tpl files</p>
  <p>However, I feel that this may interfere with NetSuite's expressions.</p>
  <p>How should I approach this?</p>