问题描述
我想使用jinja2标签将子docx模板包含到主docx模板中
我有两个模板,一个是 main.docx ,另一个是** child.docx 当我在主模板中使用jinja2标签时
{% include "child.docx" %}
子模板应该包含在主模板中,但是我遇到了错误
File "<template>",line 1,in top-level template code
TypeError: no loader for this environment specified
我正在使用docxtpl模块进行此docx模板制作。 请建议
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)