✅ 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 %}