mirror of
https://github.com/tiger1103/gfast.git
synced 2026-10-07 14:59:34 +00:00
15 lines
330 B
Go
15 lines
330 B
Go
package blog
|
|
|
|
import (
|
|
"gfast/library/response"
|
|
"github.com/gogf/gf/frame/g"
|
|
"github.com/gogf/gf/net/ghttp"
|
|
"github.com/gogf/gf/os/gview"
|
|
)
|
|
|
|
func Response(r *ghttp.Request, tpl string, params ...gview.Params) error {
|
|
view := g.View()
|
|
view.SetPath("template/plugin/blog")
|
|
return response.WriteTpl(r, tpl, view, params...)
|
|
}
|