aboutsummaryrefslogtreecommitdiff
path: root/forged/templates/_ref_query.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'forged/templates/_ref_query.tmpl')
-rw-r--r--forged/templates/_ref_query.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/forged/templates/_ref_query.tmpl b/forged/templates/_ref_query.tmpl
new file mode 100644
index 0000000..2f78955
--- /dev/null
+++ b/forged/templates/_ref_query.tmpl
@@ -0,0 +1,3 @@
+{{- define "ref_query" -}}
+{{- if .ref_type -}}?{{- .ref_type -}}={{- .ref_name -}}{{- end -}}
+{{- end -}}