Conditions constructor

Report a typo

You were given the task to create a template to demonstrate how Jinja conditions work with ready-made code blocks: sort them so that you get a working template. The titles are sorted by heading number.

Tip: To make sure you are right, write a program in Flask that uses the generated template.

Put the items in the correct order
{% endif %}
<body>
<head>
<DOCTYPE html><br><html>
</body>
<h1>There is a text</h1>
{% if flag_1 == True %}
</head>
<h2>And this text is displayed only when the argument, that passed into the render_template method equals True</h2>
</html>
<title>Mega Template</title>
___

Create a free account to access the full topic