是否可以在 A-Frame 中的另一个 nunjuck 模板文字中创建一个 nunjuck 模板文字?

Is it possible to create a nunjuck template literal inside another nunjuck template literal in A-Frame?

我想在我的 'building' 模板文字中包含一个 'glass' 模板文字。

<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>

我知道它们需要 运行 在 .HTML 文件中 - 我只是想知道是否有解决方法,所以我可以有以下内容:

index.html --> building.template --> glass.template

谢谢

使用{% raw %}.

{% raw %}
  some nunjucks templating
{% endraw %}

并且它不会在外部模板上呈现。