Cache rendered blocks content to reuse them in further calls

This commit is contained in:
Ilya Puchka
2017-12-30 03:02:18 +01:00
committed by David Jennes
parent 4d3f911f5d
commit 8c379296ca
5 changed files with 44 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
{% block header %}Header{% endblock %}
{% block body %}Body{% endblock %}
Repeat
{{ block.header }}
{{ block.body }}

View File

@@ -0,0 +1,3 @@
{% extends "base-repeat.html" %}
{% block header %}Super_{{ block.super }} Child_Header{% endblock %}
{% block body %}Child_Body{% endblock %}