1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-07 20:17:05 +00:00

Fix the call to pointer on .UseTemplate(...).Directory(..).Binary(...)

This commit is contained in:
Gerasimos Maropoulos
2016-07-26 18:36:03 +03:00
parent 83c3eb216e
commit 5579153614
3 changed files with 4 additions and 9 deletions

View File

@@ -103,10 +103,10 @@ type (
// Directory sets the directory to load from
// returns the Binary location which is optional
func (t *TemplateEngineLocation) Directory(dir string, fileExtension string) TemplateEngineBinaryLocation {
func (t *TemplateEngineLocation) Directory(dir string, fileExtension string) *TemplateEngineBinaryLocation {
t.directory = dir
t.extension = fileExtension
return TemplateEngineBinaryLocation{location: t}
return &TemplateEngineBinaryLocation{location: t}
}
// Binary sets the asset(s) and asssets names to load from, works with Directory