mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 17:15:31 +00:00
added views
This commit is contained in:
14
templating/consts.go
Normal file
14
templating/consts.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package templating
|
||||
|
||||
var TEMPLATE_FORMATS = []string{".html", ".tmpl", ".gotmpl", ".gotemplate", ".gohtml", ".gohtmltemplate"}
|
||||
|
||||
const TEMPLATE_GLOBAL_CONTEXT_NAME = "globals"
|
||||
const TEMPLATE_ROOT_NAME = "root"
|
||||
const TEMPLATE_LOCAL_CONTEXT_NAME = "locals"
|
||||
const TEMPLATE_GLOBAL_PREFIX = "_"
|
||||
const TEMPLATE_COMPONENT_DIRECTORY = "components"
|
||||
const TEMPLATE_HEAD = "head"
|
||||
const TEMPLATE_BODY = "body"
|
||||
const TEMPLATE_HEADERS = "headers"
|
||||
const ROOT_LAYOUT_NAME = "root"
|
||||
const DEFAULT_LAYOUT_NAME = "default"
|
||||
Reference in New Issue
Block a user