D
D
Drottarutarnum2020-07-01 02:52:15
Flask
Drottarutarnum, 2020-07-01 02:52:15

How to override brackets in Flask?

The fact is that the {{ var }} construct is already used by the JS template engine on the page, but Flask is trying to insert something there.

How can it be replaced with something else? For example on {: var:}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Shatalov, 2020-07-01
@Drottarutarnum

Try
{% raw %}{{ var }}{% endraw %}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question