1
0
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:
Gerasimos (Makis) Maropoulos
2023-03-17 12:38:07 +02:00
parent bd1a1486f4
commit ec2d9d016e
33 changed files with 45 additions and 885 deletions

View File

@@ -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,