SoFunction
Updated on 2024-11-17

Quickly resolving template and jinja template conflicts

Both jinjia and the default template escape are {{}}

The current solution is to change the escape character, replace the original {{}} with other tags, I changed it to {[]}

The versions and methods are as follows

// 
 = ['{[', ']}']
 
// 
new Vue({
 delimiters: ['{[', ']}']
})

Above this quick solution template and jinja template conflict is all I have shared with you, I hope it will give you a reference, and I hope you will support me more.