mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-02 06:43:23 +08:00
18 lines
273 B
Go
18 lines
273 B
Go
package entx
|
|
|
|
import (
|
|
"entgo.io/ent/entc"
|
|
"entgo.io/ent/entc/gen"
|
|
)
|
|
|
|
type Page struct {
|
|
entc.DefaultExtension
|
|
}
|
|
|
|
func (*Page) Templates() []*gen.Template {
|
|
return []*gen.Template{
|
|
gen.MustParse(gen.NewTemplate("page").
|
|
ParseFiles("../templates/page.tmpl")),
|
|
}
|
|
}
|