Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
a5114606
Commit
a5114606
authored
Mar 10, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup template helpers
parent
e8ad9867
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
19 deletions
+2
-19
template_helpers.py
src/opnsense/service/modules/addons/template_helpers.py
+0
-16
example_simple_page.txt
...service/templates/OPNsense/Sample/example_simple_page.txt
+2
-3
No files found.
src/opnsense/service/modules/addons/template_helpers.py
View file @
a5114606
...
...
@@ -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
src/opnsense/service/templates/OPNsense/Sample/example_simple_page.txt
View file @
a5114606
...
...
@@ -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 %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment