mirror of
https://git.macaw.me/skunky/SkunkyArt.git
synced 2025-04-28 12:05:06 +03:00
темплейты в бинарнике и улучшенная система кеша
This commit is contained in:
parent
4db018fb7f
commit
1537da9b16
29 changed files with 555 additions and 303 deletions
16
static/templates.go
Normal file
16
static/templates.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
//go:build embed
|
||||
// +build embed
|
||||
|
||||
package static
|
||||
|
||||
import "embed"
|
||||
|
||||
//go:embed *
|
||||
var Templates embed.FS
|
||||
var Enabled bool = true
|
||||
|
||||
var StaticPath string
|
||||
|
||||
func CopyTemplatesToMemory() {
|
||||
_ = StaticPath
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue