包括带有Nunjucks的脚本

问题描述

我想在其他脚本之间包含/添加脚本。

index.html

...
{% include "partials/_scripts.html" %}

<script src="vendor1.js"></script>
<script src="vendor2.js"></script>
...

partials / _scripts.html

<script src="core.js"></script>

here should go the vendor scripts,right between core and main js

<script src="main.js"></script>

很显然,包含不可能实现,{%block script%} {%endblock script%}也不起作用。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)