From f5478f396d6a15f29dee3915132af99e84716f4a Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 10 Oct 2023 17:02:49 -0600 Subject: support showyourwork template override directories on git directives fixes #5 --- gopher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gopher.go') diff --git a/gopher.go b/gopher.go index d5cf3c0..dcd2085 100644 --- a/gopher.go +++ b/gopher.go @@ -109,7 +109,7 @@ func addGopherCGIRoute(router *sr.Router, route RouteDirective) { func addGopherGitRoute(router *sr.Router, route RouteDirective) { buildAndAddRoute(router, route, func(route RouteDirective) sr.Handler { return sr.HandlerFunc(func(ctx context.Context, request *sr.Request) *sr.Response { - subrouter := syw.GopherRouter(route.FsPath, nil) + subrouter := syw.GopherRouter(route.FsPath, route.Modifiers.Templates) reqclone := cloneRequest(request) reqclone.Path = strings.TrimPrefix(reqclone.Path, route.URLPath) -- cgit v1.2.3