mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 04:21:57 +00:00
formatting
Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
This commit is contained in:
@@ -114,7 +114,7 @@ func (s *AmberEngine) loadDirectory() error {
|
||||
funcs[k] = v
|
||||
}
|
||||
|
||||
amber.FuncMap = funcs //set the funcs
|
||||
amber.FuncMap = funcs // set the funcs
|
||||
opt.Ext = extension
|
||||
|
||||
templates, err := amber.CompileDir(dir, opt, amber.DefaultOptions) // this returns the map with stripped extension, we want extension so we copy the map
|
||||
@@ -154,7 +154,7 @@ func (s *AmberEngine) loadAssets() error {
|
||||
virtualDirectory = virtualDirectory[1:]
|
||||
}
|
||||
}
|
||||
amber.FuncMap = funcs //set the funcs
|
||||
amber.FuncMap = funcs // set the funcs
|
||||
|
||||
names := namesFn()
|
||||
|
||||
@@ -177,7 +177,6 @@ func (s *AmberEngine) loadAssets() error {
|
||||
|
||||
name := filepath.ToSlash(rel)
|
||||
tmpl, err := amber.CompileData(buf, name, amber.DefaultOptions)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user