- Notifications
You must be signed in to change notification settings - Fork1
FlowerWrong/plushgin
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Package plushgin is a plush template renderer that can be used with theGin web framework.It uses theplush template library.
router.HTMLRender=plushgin.Default()// orrouter.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"})})
- layout