mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Integrate templates into bindata optionally (#314)
Integrated optional bindata for the templates
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
@@ -22,7 +22,7 @@ func Static(opts *Options) macaron.Handler {
 | 
			
		||||
				AssetDir:   AssetDir,
 | 
			
		||||
				AssetInfo:  AssetInfo,
 | 
			
		||||
				AssetNames: AssetNames,
 | 
			
		||||
				Prefix:     "../../public",
 | 
			
		||||
				Prefix:     "",
 | 
			
		||||
			}),
 | 
			
		||||
		},
 | 
			
		||||
	)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user