diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-06 09:33:11 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-06 09:34:06 +0800 |
commit | c9b4eee4c589b8b40c02d0c96f887ec991580a24 (patch) | |
tree | 0ab3f2a22e9c4ca430573559d5712a4a7a6903a3 /forged/templates/_group_path.tmpl | |
parent | Move the Go stuff to ./forged/ (diff) | |
download | forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.tar.gz forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.tar.zst forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.zip |
Restructure static/templates into forged
Diffstat (limited to 'forged/templates/_group_path.tmpl')
-rw-r--r-- | forged/templates/_group_path.tmpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/forged/templates/_group_path.tmpl b/forged/templates/_group_path.tmpl new file mode 100644 index 0000000..f5d3bf8 --- /dev/null +++ b/forged/templates/_group_path.tmpl @@ -0,0 +1,8 @@ +{{/* + SPDX-License-Identifier: AGPL-3.0-only + SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org> +*/}} +{{- define "group_path_plain" -}} +{{- $p := . -}} +{{- range $i, $s := . -}}{{- $s -}}{{- if ne $i (minus (len $p) 1) -}}/{{- end -}}{{- end -}} +{{- end -}} |