aboutsummaryrefslogtreecommitdiffstats
path: root/modules/public
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-12-06 18:58:31 +0100
committerGitHub <noreply@github.com>2016-12-06 18:58:31 +0100
commit83ed234472c85057100db5cc537049812c3a288c (patch)
treed6bb6623eb36dce5586c6f43495d99bb94b35827 /modules/public
parent1b5b297c398a547b506029ac5a527ba9a5891ffb (diff)
downloadgitea-83ed234472c85057100db5cc537049812c3a288c.tar.gz
gitea-83ed234472c85057100db5cc537049812c3a288c.zip
Integrate templates into bindata optionally (#314)
Integrated optional bindata for the templates
Diffstat (limited to 'modules/public')
-rw-r--r--modules/public/public.go2
-rw-r--r--modules/public/static.go2
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/public/public.go b/modules/public/public.go
index 261ed88874..9c9e9d533d 100644
--- a/modules/public/public.go
+++ b/modules/public/public.go
@@ -6,6 +6,8 @@ package public
//go:generate go-bindata -tags "bindata" -ignore "\\.go|\\.less" -pkg "public" -o "bindata.go" ../../public/...
//go:generate go fmt bindata.go
+//go:generate sed -i.bak s/..\/..\/public\/// bindata.go
+//go:generate rm -f bindata.go.bak
// Options represents the available options to configure the macaron handler.
type Options struct {
diff --git a/modules/public/static.go b/modules/public/static.go
index 8184bc2149..f68400d329 100644
--- a/modules/public/static.go
+++ b/modules/public/static.go
@@ -22,7 +22,7 @@ func Static(opts *Options) macaron.Handler {
AssetDir: AssetDir,
AssetInfo: AssetInfo,
AssetNames: AssetNames,
- Prefix: "../../public",
+ Prefix: "",
}),
},
)