Forum Discussion
Ian_Turner
8 years agoQrew Cadet
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.
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.
RobertScalise
8 years agoQrew 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
<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>
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>