Answer the question
In order to leave comments, you need to log in
Is it possible to dynamically include static files in a jinja2 template?
Hello, I am writing an application in flask. The essence of the problem.
It is necessary to dynamically connect a static file to the jinja2 template, the path to which is not known at the time of template creation.
<link href="{{ url_for('.static', filename=' ') }}" rel="stylesheet">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question