Hello,
I am attempting to use Template7 inside Framework 7, I added
import Template7 from 'template7';
window.Template7 = Template7;
to my app.js. Then added:
var searchTemplate = $$('script#search-template').html();
var compiledSearchTemplate = Template7.compile(searchTemplate);
var html = compiledSearchTemplate({
firstName: "John"
});
console.log(html)
and
<script id="search-template" type="text/template7">
<li class="item-content">
<div class="item-inner">
<div class="item-title">{{{firstName}}}</div>
</div>
</li>
</script>
From the documentation. However, none of the variables I’m entering are being rendered. The {{}} are just replaced by nothing.