Skip to content

Commit

Permalink
Correct Jinja syntax. "Set" variable. Change "include" block to "impo…
Browse files Browse the repository at this point in the history
…rt ... as".

Intended to fix #2052
  • Loading branch information
JamesParrott authored Dec 9, 2024
1 parent d680a95 commit 66f5f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/basic/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
{
"child.html": """\
{% extends default_layout or 'default.html' %}
{% include helpers = 'helpers.html' %}
{% import 'helpers.html' as helpers %}
{% macro get_the_answer() %}42{% endmacro %}
{% title = 'Hello World' %}
{% set title = 'Hello World' %}
{% block body %}
{{ get_the_answer() }}
{{ helpers.conspirate() }}
Expand Down

0 comments on commit 66f5f3e

Please sign in to comment.