summaryrefslogtreecommitdiff
path: root/gopher.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-10-10 17:02:49 -0600
committertjpcc <tjp@ctrl-c.club>2023-10-10 18:13:59 -0600
commitf5478f396d6a15f29dee3915132af99e84716f4a (patch)
treedff518257813e2071f6e58875ace0e65b7f00779 /gopher.go
parent365b6bd5319cde40b5cf34b73d01e0fe5755d92e (diff)
support showyourwork template override directories on git directives
fixes #5
Diffstat (limited to 'gopher.go')
-rw-r--r--gopher.go2
1 files changed, 1 insertions, 1 deletions
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)