comparison default/blog/articles.html @ 38:f371bc50ea45

blog/articles: added context when importing comment, so csrf_token is transmited to the macro.
author Goffi <goffi@goffi.org>
date Tue, 11 Jul 2017 07:47:18 +0200
parents 8fa2fd2e928e
children f8798d691acf
comparison
equal deleted inserted replaced
37:eb9a42fca6c8 38:f371bc50ea45
1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} 1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
2 {% import 'input/comment.html' as comment %} 2 {% import 'input/comment.html' as comment with context %}
3 3
4 {% macro show_items(items, comments=False) %} 4 {% macro show_items(items, comments=False) %}
5 {# show items and comments items if present after each item, 5 {# show items and comments items if present after each item,
6 then post form if allow_commenting is set #} 6 then post form if allow_commenting is set #}
7 {% for item in items %} 7 {% for item in items %}