fix Jinja syntax in example
This commit is contained in:
parent
3d0a7d7b0f
commit
0c0a3d02d1
@ -6,9 +6,9 @@ env = Environment(
|
|||||||
{
|
{
|
||||||
"child.html": """\
|
"child.html": """\
|
||||||
{% extends default_layout or 'default.html' %}
|
{% extends default_layout or 'default.html' %}
|
||||||
{% include helpers = 'helpers.html' %}
|
{% import 'helpers.html' as helpers %}
|
||||||
{% macro get_the_answer() %}42{% endmacro %}
|
{% macro get_the_answer() %}42{% endmacro %}
|
||||||
{% title = 'Hello World' %}
|
{% set title = 'Hello World' %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{ get_the_answer() }}
|
{{ get_the_answer() }}
|
||||||
{{ helpers.conspirate() }}
|
{{ helpers.conspirate() }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user