Forum Discussion

Re: Referencing mustache.js in quickbase pages

The interesting thing was that I had the https in the script reference on the page and was getting the mixed content warning.

I am using the Pages section of the App to create HTML pages - if I omit the script reference it just tells me Mustache is not defined.

1 Reply

  • RobertScalise's avatar
    RobertScalise
    Qrew Cadet
    I just started working with Mustache and I also get a Mustache not defined message if I do not include it. This works when referencing https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.js

     <script>
          var view = {
            name : "Joe",
            occupation : "Web Developer"
          };

          function loadtemp(){
            var output = Mustache.render("{{name}} is a  {{occupation}}", view);
            document.getElementById('person').innerHTML = output;
          }
        </script>

      <body onload="loadtemp()" >
        <p id="person"></p>
      </body>