init template
This commit is contained in:
13
json/engine/engine.go
Normal file
13
json/engine/engine.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user