Vue Study Notes

This is an automatically translated post by LLM. The original post is in Chinese. If you find any translation errors, please leave a comment to help me improve the translation. Thanks!

Vue

Notes on Using Vue with Flask

There may be conflicts when using Vue with Flask, but they can be resolved by changing the configuration.

  • Flask
1
2
3
4
if __name__ == '__main__':
app.jinja_env.variable_start_string = '[['
app.jinja_env.variable_end_string = ']]'
app.run(debug=True)
  • Vue
1
2
3
new Vue({
delimiters: ['[[',']]']
})

Directives

Directive | Purpose |