aboutsummaryrefslogtreecommitdiffstats
path: root/tests/templates/django.html
diff options
context:
space:
mode:
authorSean Brant2013-03-13 22:23:50 -0500
committerSean Brant2013-03-13 22:23:50 -0500
commitc7d7aad2913d666a9ad09d74976bb90eff03acd1 (patch)
tree2085154feb77942ef8760f9c4eb4486cc24687f7 /tests/templates/django.html
parent083e4dd9ed498ba2ef5133943fadb1fab7e71276 (diff)
downloadpykss-c7d7aad2913d666a9ad09d74976bb90eff03acd1.tar.bz2
Adds support for adding examples inside comments
Diffstat (limited to 'tests/templates/django.html')
-rw-r--r--tests/templates/django.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/templates/django.html b/tests/templates/django.html
index 7c52f40..7a5cf38 100644
--- a/tests/templates/django.html
+++ b/tests/templates/django.html
@@ -8,11 +8,10 @@
["{{ modifier.name }}","{{ modifier.description }}"]{% if not forloop.last %},{% endif %}
{% endfor %}
],
- "example_html": "{{ example_html|escapejs }}",
+ "example_html": "{{ section.example|escapejs }}",
"modifier_examples": [
- {% for example in modifier_examples %}
- ["{{ example.modifier.name }}","{{ example.html|escapejs }}"]{% if not forloop.last %},{% endif %}
+ {% for modifier in section.modifiers %}
+ ["{{ modifier.name }}","{{ modifier.example|escapejs }}"]{% if not forloop.last %},{% endif %}
{% endfor %}
- ],
- "escaped_html": "{{ escaped_html|escapejs }}"
+ ]
}