I got all my templates working except this one, I can’t see what is wrong with it just stubbornly keeps showing up as text…
HTML
<script type="text/template" id="aboutPageTemplate"></script>
{{translations['about.title']}}
test
</script>
<div id="aboutContent">
<!-- template appended -->
</div>
JS
on: {
pageInit: function (e, page) {
var aboutPage = {
translations : null,
};
let langCode = app.methods.getCurrentLanguage();
aboutPage.translations = app.data.translations[langCode];
var template = $$('script#aboutPageTemplate').html();
var compiledTemplate = Template7.compile(template);
var html = compiledTemplate(aboutPage);
console.log(html);
$$('#aboutContent').append(html);