Answer the question
In order to leave comments, you need to log in
Jinja2 + Python + html work?
Good afternoon.
It is required to output data from text files to an html page.
I implemented data sampling in python, everything works fine in the console.
How can I output with jinja. I understand that a web page is being created with variables {{% name % }} for example and their correspondence in python. But when I run html through the browser, I get a page with variables, the python and jingy did not work. Where to drip?
Answer the question
In order to leave comments, you need to log in
and without a flask it will not turn out? I would not like to use the framework for one-time work.
You have 2 options.
Either you manually form an html page every time, and then open the finished one, or, if you need to form it dynamically every time, you dig towards frameworks: Flask , Falcon (pure minimalism), etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question