B
B
bituke2020-10-03 16:30:08
Django
bituke, 2020-10-03 16:30:08

How does the django template engine work?

I can't figure out how Django's template engine works. I don’t know how it is possible to implement a function in python that did something with another document by a simple command, without any imports.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2020-10-03
@deliro

Approximately the same as any interpreter. Parses the source code, performs lexical analysis, generates tokens, creates an abstract syntax tree, executes it.

D
Dr. Bacon, 2020-10-03
@bacon

A template engine for displaying information, according to the idea, it should not change anything at all (there are nuances, but this is rather for those who understand exactly what they are doing)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question