|
@@ -49,6 +49,7 @@ type RenderParams struct {
|
49
|
49
|
ShouldPopulateRenderedContent bool
|
50
|
50
|
RenderedContent string
|
51
|
51
|
ShouldSkipFinalRenderStep bool
|
|
52
|
+ PageTitle string
|
52
|
53
|
}
|
53
|
54
|
|
54
|
55
|
func (t *Template) GetTemplateType() int8 {
|
|
@@ -143,6 +144,10 @@ func (t *Template) RenderTemplateOnClient(params *RenderParams) {
|
143
|
144
|
params.Element.AppendChild(div)
|
144
|
145
|
}
|
145
|
146
|
|
|
147
|
+ if params.PageTitle != "" && params.ShouldPopulateRenderedContent == false {
|
|
148
|
+ dom.GetWindow().Document().Underlying().Set("title", params.PageTitle)
|
|
149
|
+ }
|
|
150
|
+
|
146
|
151
|
}
|
147
|
152
|
|
148
|
153
|
func (t *Template) RenderTemplateOnServer(params *RenderParams) {
|