From 8ed0dbe4201a58b00d6f3743178f4cbe5328e2b0 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 6 Mar 2025 15:17:57 +0800 Subject: *: Support subgroups via SQL recursion --- templates/_group_path.tmpl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/_group_path.tmpl (limited to 'templates/_group_path.tmpl') diff --git a/templates/_group_path.tmpl b/templates/_group_path.tmpl new file mode 100644 index 0000000..f8b5f47 --- /dev/null +++ b/templates/_group_path.tmpl @@ -0,0 +1,8 @@ +{{/* + SPDX-License-Identifier: AGPL-3.0-only + SPDX-FileContributor: Runxi Yu +*/}} +{{- define "group_path_plain" -}} +{{ $p := . }} +{{ range $i, $s := . }}{{ $s }}{{ if ne $i (len $p) }}/{{ end }}{{ end }} +{{ end }} -- cgit v1.2.3