Introduced templating and views

This commit is contained in:
Simon Martens
2025-02-09 14:51:04 +01:00
parent 159fa1a7bb
commit a250d1b18e
209 changed files with 74559 additions and 0 deletions

14
templating/consts.go Normal file
View 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"