From 77725e02cc964f980465b158bb86c4061e6bfcca Mon Sep 17 00:00:00 2001 From: tjp Date: Tue, 14 Nov 2023 21:53:09 -0700 Subject: support for nex protocol --- templates/tree.nex.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/tree.nex.txt (limited to 'templates/tree.nex.txt') 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 -}} -- cgit v1.2.3