File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -112,21 +112,19 @@ func NewTemplateFileSystem() templateFileSystem {
112
112
return fs
113
113
}
114
114
115
- var tplFileSys = NewTemplateFileSystem ()
116
-
117
115
// HTMLRenderer implements the macaron handler for serving HTML templates.
118
116
func HTMLRenderer () macaron.Handler {
119
117
return macaron .Renderer (macaron.RenderOptions {
120
118
Funcs : NewFuncMap (),
121
- TemplateFileSystem : tplFileSys ,
119
+ TemplateFileSystem : NewTemplateFileSystem () ,
122
120
})
123
121
}
124
122
125
123
// JSONRenderer implements the macaron handler for serving JSON templates.
126
124
func JSONRenderer () macaron.Handler {
127
125
return macaron .Renderer (macaron.RenderOptions {
128
126
Funcs : NewFuncMap (),
129
- TemplateFileSystem : tplFileSys ,
127
+ TemplateFileSystem : NewTemplateFileSystem () ,
130
128
HTMLContentType : "application/json" ,
131
129
})
132
130
}
You can’t perform that action at this time.
0 commit comments