Skip to content

FlowerWrong/plushgin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

plush template for gin web framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages