S
S
Stan2016-02-03 15:08:12
Python
Stan, 2016-02-03 15:08:12

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

4 answer(s)
R
Roman Kitaev, 2016-02-03
@deliro

Dig into Flask if it's quick or Django if it's something more.

S
Stan, 2016-02-03
@SantaKlaud

and without a flask it will not turn out? I would not like to use the framework for one-time work.

N
Nikita Konin, 2016-02-03
@jkjkjirf

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.

T
Tirael78, 2016-02-03
@Tirael78

it is possible without
aiohttp+jinja2 framework
aiohttp-jinja2.readthedocs.org/en/stable
everything is quite simple and no extra entities

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question