Skip to content

Commit

Permalink
Merge pull request #11 from Styria-Digital/feature/test_base_2
Browse files Browse the repository at this point in the history
Feature/test base 2
  • Loading branch information
mislavcimpersak committed Sep 7, 2016
2 parents 44fce2c + 958cf77 commit 9f63009
Show file tree
Hide file tree
Showing 4 changed files with 386 additions and 1 deletion.
10 changes: 10 additions & 0 deletions demo/app/templates/app/templates/from_syntax_with_tags.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% extends "master.html" %}
{% load example_inclusion_tag example_simple_tag example_assignment_tag plus from app_tags %}

{% block body %}
<h1>App template</h1>
{% example_inclusion_tag %}
<p id="simple_tag">Testing: {% example_simple_tag %}</p>
<p id="assignment_tag">Testing: {% example_assignment_tag as example%}</p>
<p id="filter">Testing: {{ 2|plus:5 }}</p>
{% endblock body %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends "master.html" %}
{% load example_simple_tag plus from app_tags %}

{% block body %}
<h1>App template</h1>
{% endblock body %}
2 changes: 1 addition & 1 deletion unload/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def list_unutilized_items(self):
headers = ['Unutilized module', 'Unutilized tag/filter']
table = zip(modules, members)

return table, headers
return list(table), headers

def _get_utilized_members(self):
"""
Expand Down
Loading

0 comments on commit 9f63009

Please sign in to comment.