Commit a5114606 authored by Ad Schellevis's avatar Ad Schellevis

cleanup template helpers

parent e8ad9867
......@@ -65,19 +65,3 @@ class Helpers(object):
else:
return False
def getIterator(self,*parms):
"""
get iterator for given tags
:param parms: list of tags (in dot notation )
:return: list containing all collected detail items
"""
result = []
for tag in parms:
node = self.getNodeByTag(tag)
if node is not None:
if type(node) == list:
result += node
else:
result.append(node)
return result
\ No newline at end of file
......@@ -35,6 +35,5 @@ A sample with multiple output files ( for example based on interface ) can be fo
filter.rule exists
{% endif %}
{% for item in helpers.getIterator('filter.rule') %}
{{ item.type }}
{% endfor %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment