mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2026-03-21 13:55:30 +00:00
Better inital
This commit is contained in:
22
templates/embed.go
Normal file
22
templates/embed.go
Normal file
@@ -0,0 +1,22 @@
|
||||
//go:build !dev
|
||||
|
||||
package templates
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
)
|
||||
|
||||
// FS contains all template files.
|
||||
//
|
||||
//go:embed layouts pages components
|
||||
var rawFS embed.FS
|
||||
|
||||
var FS fs.FS = rawFS
|
||||
|
||||
// PublicFS contains static assets (js, css, images, ...).
|
||||
//
|
||||
//go:embed public
|
||||
var rawPublicFS embed.FS
|
||||
|
||||
var PublicFS fs.FS = rawPublicFS
|
||||
Reference in New Issue
Block a user