From c64b842df9d25f6a26abc8efab5d644a3e3cf716 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 24 Feb 2017 18:26:41 -0500 Subject: [PATCH] templates: able to inject content to head and footer (#1286) --- templates/base/footer.tmpl | 1 + templates/base/head.tmpl | 2 ++ templates/inject/footer.tmpl | 0 templates/inject/head.tmpl | 0 4 files changed, 3 insertions(+) create mode 100644 templates/inject/footer.tmpl create mode 100644 templates/inject/head.tmpl diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index df8f9117d..1c0f04495 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -52,4 +52,5 @@ +{{template "inject/footer" .}} diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 706ebf908..3e0fd2604 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -72,6 +72,8 @@ {{if .Title}}{{.Title}} - {{end}}{{AppName}} + + {{template "inject/head" .}}
diff --git a/templates/inject/footer.tmpl b/templates/inject/footer.tmpl new file mode 100644 index 000000000..e69de29bb diff --git a/templates/inject/head.tmpl b/templates/inject/head.tmpl new file mode 100644 index 000000000..e69de29bb