mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 12:31:58 +00:00
update view benchmarks and remove ace template parser
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package view
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/yosssi/ace"
|
||||
@@ -62,6 +63,12 @@ func Ace(fs interface{}, extension string) *AceEngine {
|
||||
[]*ace.File{},
|
||||
)
|
||||
|
||||
if strings.Contains(name, "layout") {
|
||||
for k, v := range s.layoutFuncs {
|
||||
funcs[k] = v
|
||||
}
|
||||
}
|
||||
|
||||
opts := &ace.Options{
|
||||
Extension: extension[1:],
|
||||
FuncMap: funcs,
|
||||
|
||||
Reference in New Issue
Block a user