mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 21:28:22 +08:00
22 lines
328 B
Go
22 lines
328 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gogf/gf/frame/g"
|
|
"github.com/gogf/gf/os/gres"
|
|
_ "github.com/gogf/gf/os/gres/testdata"
|
|
)
|
|
|
|
func main() {
|
|
gres.Dump()
|
|
|
|
v := g.View()
|
|
v.SetPath("files/template/layout2")
|
|
s, err := v.Parse("layout.html", g.Map{
|
|
"mainTpl": "main/main1.html",
|
|
})
|
|
fmt.Println(err)
|
|
fmt.Println(s)
|
|
}
|