aboutsummaryrefslogtreecommitdiffstats
path: root/tests/templates
diff options
context:
space:
mode:
authorSean Brant2013-03-10 22:48:15 -0500
committerSean Brant2013-03-10 22:48:15 -0500
commit63ff8bab7cf4b818da6e50251f8a79cf1e1209d8 (patch)
tree655caff061bdbdb081c450a65f368798819ef7cc /tests/templates
parent9ad7a3fc99ecd77e215a9422fd05ed5da6a3f841 (diff)
downloadpykss-63ff8bab7cf4b818da6e50251f8a79cf1e1209d8.tar.bz2
Adds tests for django template tag
Diffstat (limited to 'tests/templates')
-rw-r--r--tests/templates/django.html18
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 }}"
+}