summaryrefslogtreecommitdiff
path: root/templates/python/template.py
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2020-06-20 10:58:18 +0000
committerDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2020-06-20 10:58:18 +0000
commitf9e5f30e17f22240dee3a6b99fafea7ec0a0a066 (patch)
tree272715801099083825d51f7d14234215ce8068e0 /templates/python/template.py
parent613eaaf82fbbbc96b05b19cc0c8bdbfec3a892ee (diff)
parent86a9f568c410bed2f4503a2e8d43e2dc2a0d70b8 (diff)
downloadsubplot-f9e5f30e17f22240dee3a6b99fafea7ec0a0a066.tar.gz
Merge branch 'funcsrc' into 'master'
feat: supply source file name for functions files Closes #64 See merge request larswirzenius/subplot!51
Diffstat (limited to 'templates/python/template.py')
-rw-r--r--templates/python/template.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/python/template.py b/templates/python/template.py
index 4ceeb51..af5b36e 100644
--- a/templates/python/template.py
+++ b/templates/python/template.py
@@ -1,7 +1,12 @@
#############################################################################
# Functions that implement steps.
-{{ functions }}
+{% for func in functions %}
+#----------------------------------------------------------------------------
+# This code comes from: {{ func.source }}
+
+{{ func.code }}
+{% endfor %}
#############################################################################