What is the dose in braces and percent signs in html?

I am learning how to design a website as part of Django. I don’t understand something about the html template file.

I saw that the tutorial used curly braces ( <% if ... %> <% endif %>etc.) to insert logic into the code. But when I try to use this syntax on a server other than Django (Apache), this syntax has not been interpreted, and I can see mine <% if ... %>... right on my page.

I do not know why this is so.

So this syntax is not part of HTML, but part of Django, so can it be interpreted?

+5
source share
1 answer

First and foremost, the correct tags for the Django: template language are: {% %}rather than <? ?>.

, Django. , , , , . Django , , .

, Django , . , HTML , {% block pasta%} - . HTML.

, , Django, . , , . PHP, , , , Perl, , . , , . , , :)

p.s. .

+13