logo

Crowdly

Browser

Add to Chrome

Який результат поверне функція render_template() для наступного Jinja2 шаблону ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Який результат поверне функція render_template() для наступного Jinja2 шаблону

{% set post_list = {'first post':'<p>some boring stuff</p>', 'second post':'<p>just another post for quiz</p>'} %}

{{ render_posts(post_list) }}

{% macro render_posts(post_list, sep=False) %}

<div>

{% for key,value in post_list.items() %}

<h2>{{ key }}</h2>

<article>

{{ value }}

</article>

{% endfor %}

{% if sep %}<hr>{% endif %}

</div>

{% endmacro %}
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on learn.ztu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome