I am looking to incorporate a 'glass' template literal within my 'building' template literal.
<script id="building" type="text/x-nunjucks-template">
{% for x in range(0, 5) %}
<a-entity template="src: building.template; type: handlebars" position="{{ x * 5 }} 0 0">
</a-entity>
{% endfor %}
</script>
<script id="glass" type="text/x-nunjucks-template">
{% for x in range(0, 5) %}
<a-entity template="src: glass.template; type: handlebars" position="{{ x }} 2 2">
</a-entity>
{% endfor %}
</script>
Although I recognize that they should be executed within .HTML files, I am curious if there is a way to set it up like this:
index.html --> building.template --> glass.template
Your assistance on this matter is greatly appreciated.