diff options
author | Thomas Boerger <thomas@webhippie.de> | 2016-12-06 18:58:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-06 18:58:31 +0100 |
commit | 83ed234472c85057100db5cc537049812c3a288c (patch) | |
tree | d6bb6623eb36dce5586c6f43495d99bb94b35827 /modules/templates/templates.go | |
parent | 1b5b297c398a547b506029ac5a527ba9a5891ffb (diff) | |
download | gitea-83ed234472c85057100db5cc537049812c3a288c.tar.gz gitea-83ed234472c85057100db5cc537049812c3a288c.zip |
Integrate templates into bindata optionally (#314)
Integrated optional bindata for the templates
Diffstat (limited to 'modules/templates/templates.go')
-rw-r--r-- | modules/templates/templates.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/templates/templates.go b/modules/templates/templates.go new file mode 100644 index 0000000000..91c8db5228 --- /dev/null +++ b/modules/templates/templates.go @@ -0,0 +1,10 @@ +// Copyright 2016 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package templates + +//go:generate go-bindata -tags "bindata" -ignore "\\.go" -pkg "templates" -o "bindata.go" ../../templates/... +//go:generate go fmt bindata.go +//go:generate sed -i.bak s/..\/..\/templates\/// bindata.go +//go:generate rm -f bindata.go.bak |