rename to elgit
1 file changed, 6 insertions(+), 2 deletions(-)
changed files
M routes/template.go → routes/template.go
@@ -9,10 +9,10 @@ "net/http" "path/filepath" "strings" - "git.icyphox.sh/legit/git" "github.com/alecthomas/chroma/v2/formatters/html" "github.com/alecthomas/chroma/v2/lexers" "github.com/alecthomas/chroma/v2/styles" + "go.alanpearce.eu/elgit/git" ) func (d *deps) Write404(w http.ResponseWriter) {@@ -72,7 +72,11 @@ } } } -func (d *deps) showFileWithHighlight(name, content string, data map[string]any, w http.ResponseWriter) { +func (d *deps) showFileWithHighlight( + name, content string, + data map[string]any, + w http.ResponseWriter, +) { tpath := filepath.Join(d.c.Dirs.Templates, "*") t := template.Must(template.ParseGlob(tpath))