summaryrefslogtreecommitdiff
path: root/templates/tree.nex.txt
diff options
context:
space:
mode:
Diffstat (limited to 'templates/tree.nex.txt')
-rw-r--r--templates/tree.nex.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/tree.nex.txt b/templates/tree.nex.txt
new file mode 100644
index 0000000..676113b
--- /dev/null
+++ b/templates/tree.nex.txt
@@ -0,0 +1,8 @@
+{{ with .Repo.Commit .Ctx .Params.ref -}}
+{{slice .Hash 0 8}}:{{ if ne $.Params.path "" }}{{$.Params.path}}{{ else }}/{{ end }}
+
+{{ end -}}
+=> ../ {{ if ne .Params.path "" }}../{{ else }}Commit{{ end }}
+{{ range .Repo.Tree .Ctx .Params.ref .Params.path -}}
+=> ./{{.Path}}{{if eq .Type "tree"}}/{{end}} {{if eq .Type "blob"}}📄{{else if eq .Type "tree"}}📂{{end}} {{.Path}}
+{{ end -}}