Insert static files literally into Jinja templates without parsing them

前端 未结 5 1743
逝去的感伤
逝去的感伤 2020-12-15 07:09

I\'m trying to insert file into a page using Jinja 2.6 using the include tag. This worked fine until I started using characters in the file that are reminiscent

5条回答
  •  没有蜡笔的小新
    2020-12-15 07:20

    Try putting the syntax in the other files in {% raw %} {% endraw %}

    You can use jQuery if you dont want to edit the external files: Make a dive to contain the content

    and use jquery to load the file : $("#contentoffile").load("url to file") << the url can be relative

提交回复
热议问题