diff --git a/.gitignore b/.gitignore
index 65082f81..c554cbcc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@ vendor/*
/build/out/
/.sass-cache
/extra
+/extra.d
/src/i18n/*.mo
server.key
server.csr
diff --git a/go/channelling/context.go b/go/channelling/context.go
index 1315e2f5..c805a370 100644
--- a/go/channelling/context.go
+++ b/go/channelling/context.go
@@ -21,14 +21,21 @@
package channelling
+import (
+ "html/template"
+)
+
type Context struct {
- App string // Main client script
- Cfg *Config
- Host string
- Ssl bool
- Csp bool
- Languages []string
- Room string `json:"-"`
- Scheme string `json:"-"`
- Origin string `json:",omitempty"`
+ App string // Main client script
+ Cfg *Config
+ Host string
+ Ssl bool
+ Csp bool
+ Languages []string
+ Room string `json:"-"`
+ Scheme string `json:"-"`
+ Origin string `json:",omitempty"`
+ S string `json:",omitempty"`
+ ExtraDHead template.HTML `json:"-"`
+ ExtraDBody template.HTML `json:"-"`
}
diff --git a/html/head.html b/html/head.html
index 5efedc9e..f9a95ec3 100644
--- a/html/head.html
+++ b/html/head.html
@@ -11,4 +11,5 @@
<%template "extra-head" .%>
-<%end%>
\ No newline at end of file
+<%.ExtraDHead%>
+<%end%>
diff --git a/html/main.html b/html/main.html
index 9cf277e3..ed9539c3 100644
--- a/html/main.html
+++ b/html/main.html
@@ -9,5 +9,6 @@
<%template "extra-body" .%>
+<%.ExtraDBody%>