init template

This commit is contained in:
andrey1s
2022-10-02 23:31:19 +03:00
parent 3d5d51b2df
commit 621afcc59c
24 changed files with 969 additions and 0 deletions

13
json/engine/engine.go Normal file
View File

@@ -0,0 +1,13 @@
package engine
import (
"gitoa.ru/go-4devs/encoding/json"
"gitoa.ru/go-4devs/mime"
"gitoa.ru/go-4devs/templating/engine"
)
const Name = "json"
func New() engine.Encode {
return engine.NewEncode(Name, json.Encode, mime.ExtJSON)
}