Documentation ¶
Index ¶
- func CorsOrigins() string
- func HandleTemplate(c *fiber.Ctx, template string, name string, data interface{}, status int) error
- func IsProd() bool
- func PickFS(useDisk bool, e embed.FS, dir string) http.FileSystem
- func SendAlert(page, content string) error
- type Env
- type MapHash
- type PageModel
- type StrictFs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorsOrigins ¶
func CorsOrigins() string
CorsOrigins returns the proper CORS origin configuration for the current environment
func HandleTemplate ¶
func HandleTemplate( c *fiber.Ctx, template string, name string, data interface{}, status int, ) error
HandleTemplate will execute the http template engine with the given template, name, data, and status
Types ¶
type PageModel ¶
PageModel contains runtime information that can be used during page template rendering
func GenPageModel ¶
GenPageModel generates the global page model
Click to show internal directories.
Click to hide internal directories.