Complete the code to include a reusable header template in your main template.
{% include '[1]' %}The {% include %} tag inserts the content of the specified template file. Here, header.html is included for reusability.
Complete the code to include a navigation bar template inside a base template.
<nav>{% include '[1]' %}</nav>The navbar.html template usually contains the navigation bar, so including it inside the <nav> tag is correct.
Fix the error in the code to correctly include a reusable sidebar template.
{% include [1] %}The {% include %} tag requires the template name as a quoted string. Using single quotes like 'sidebar.html' is correct.
Fill both blanks to include a reusable footer template and pass a variable named 'year' to it.
{% include '[1]' with [2]=current_year %}The footer template is usually named footer.html. Passing the variable year allows the included template to use it.
Fill all three blanks to include a reusable card template, pass a title and content variables to it.
{% include '[1]' with [2]=card_title [3]=card_content %}The reusable card template is card.html. Passing title and content variables allows the included template to display dynamic data.