diff options
| author | Sean Brant | 2013-03-13 22:23:50 -0500 | 
|---|---|---|
| committer | Sean Brant | 2013-03-13 22:23:50 -0500 | 
| commit | c7d7aad2913d666a9ad09d74976bb90eff03acd1 (patch) | |
| tree | 2085154feb77942ef8760f9c4eb4486cc24687f7 /tests/templates/django.html | |
| parent | 083e4dd9ed498ba2ef5133943fadb1fab7e71276 (diff) | |
| download | pykss-c7d7aad2913d666a9ad09d74976bb90eff03acd1.tar.bz2 | |
Adds support for adding examples inside comments
Diffstat (limited to 'tests/templates/django.html')
| -rw-r--r-- | tests/templates/django.html | 9 | 
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 }}" +    ]  } | 
