Skip to content
#

jinja2

Here are 1,321 public repositories matching this topic...

nabijaczleweli
nabijaczleweli commented Jul 8, 2020

Tested on 5dc12afc4e0e506183898fc56d3bdc9ce6a0b6d7 (current HEAD) and 1.3.1 off Crates.io.

Given the following setup:

{# parent #}
{% block henlo %}
henlo
{% endblock %}

{# macro #}
{% macro benlo() %}
trenlo
{% endmacro benlo %}

{# child #}
{% extends "parent" %}
{% import "macro" as macros %}

{% block henlo %}
{{ super() }}
menlo
{{ macros::benlo() }}
{% endbloc

Improve this page

Add a description, image, and links to the jinja2 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the jinja2 topic, visit your repo's landing page and select "manage topics."

Learn more