Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 575 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 575 Bytes

Plush template for gin

Package plushgin is a plush template renderer that can be used with the Gin web framework. It uses the plush template library.

Basic Usage

router.HTMLRender = plushgin.Default()
// or
router.HTMLRender = plushgin.New(plushgin.RenderOptions{
	TemplateDir: 		"templates",
	ContentType: 		"text/html; charset=utf-8",
	MaxCacheEnties: 128,
})

router.GET("/", func(c *gin.Context) {
	c.HTML(200, "index.html", gin.H{"name": "world"})
})

TODO

  • layout