- 授权协议: MIT
- 开发语言: Google Go
- 操作系统: 跨平台
- 软件首页: https://github.com/robvdl/pongo2gin
- 软件文档: https://godoc.org/github.com/robvdl/pongo2gin
- 官方下载: https://github.com/robvdl/pongo2gin
软件介绍
Pongo2gin 是一个支持 Gin Web 框架的 Go 模板引擎。它可以与 Gin Web 框架一起使用,并使用了 Pongo2 模板引擎。
基础示例
import (
"github.com/gin-gonic/gin"
"github.com/flosch/pongo2"
"github.com/robvdl/pongo2gin"
)
func main() {
router := gin.Default()
// Use pongo2gin.Default() for default options or pongo2gin.New()
// if you need to use custom RenderOptions.
router.HTMLRender = pongo2gin.Default()
router.GET("/", func(c *gin.Context) {
// Use pongo2.Context instead of gin.H
c.HTML(200, "hello.html", pongo2.Context{"name": "world"})
})
router.Run(":8080")
}
Powerful
Patty McCord / Missionday / 2018-1-25
Named by The Washington Post as one of the 11 Leadership Books to Read in 2018 When it comes to recruiting, motivating, and creating great teams, Patty McCord says most companies have it all wrong. Mc......一起来看看 《Powerful》 这本书的介绍吧!
Base64 编码/解码
Base64 编码/解码
UNIX 时间戳转换
UNIX 时间戳转换
