diff options
Diffstat (limited to 'tests/templates/django.html')
| -rw-r--r-- | tests/templates/django.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/templates/django.html b/tests/templates/django.html new file mode 100644 index 0000000..7c52f40 --- /dev/null +++ b/tests/templates/django.html @@ -0,0 +1,18 @@ +{# it's probably a terrible idea to render JSON by hand... #} +{ + "section": "{{ section.section }}", + "filename": "{{ section.filename }}", + "description": "{{ section.description }}", + "modifiers": [ + {% for modifier in section.modifiers %} + ["{{ modifier.name }}","{{ modifier.description }}"]{% if not forloop.last %},{% endif %} + {% endfor %} + ], + "example_html": "{{ example_html|escapejs }}", + "modifier_examples": [ + {% for example in modifier_examples %} + ["{{ example.modifier.name }}","{{ example.html|escapejs }}"]{% if not forloop.last %},{% endif %} + {% endfor %} + ], + "escaped_html": "{{ escaped_html|escapejs }}" +} |
