summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-05-20 08:25:56 +0300
committerLars Wirzenius <liw@liw.fi>2020-05-20 10:59:54 +0300
commit6ca305d000360de74e686d801c638086c876d08a (patch)
treeb918c7aaa7f7d099759f0d5812c9270c2bae9e6c /templates
parent6d77fdedd7fd0f832a543b7eb530ae15984aa377 (diff)
downloadsubplot-6ca305d000360de74e686d801c638086c876d08a.tar.gz
feat!: allow multiple bindings and functions files
Where previously the document metadata could specify a single bindings file, and a single functions file, it can now specify one or more. If a single value is given, that's the filename. Otherwise, it can be a YAML list of filenames. Drop the functions_filename template variable, which was effectively unused, and for which there is no recorded use case at this time.
Diffstat (limited to 'templates')
-rw-r--r--templates/bash/template.sh2
-rw-r--r--templates/python/template.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/bash/template.sh b/templates/bash/template.sh
index bc6a51e..286e56f 100644
--- a/templates/bash/template.sh
+++ b/templates/bash/template.sh
@@ -3,7 +3,7 @@
set -eu -o pipefail
#############################################################################
-# Functions that implement steps. From {{ functions_filename }}.
+# Functions that implement steps.
{{ functions }}
diff --git a/templates/python/template.py b/templates/python/template.py
index 76d8239..e430b1b 100644
--- a/templates/python/template.py
+++ b/templates/python/template.py
@@ -1,5 +1,5 @@
#############################################################################
-# Functions that implement steps. From {{ functions_filename }}.
+# Functions that implement steps.
{{ functions }}