Registry /
web-framework / gin-contrib-multitemplate
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
multitemplate
✓ github.com/gin-contrib/multitemplate
Sets up a Gin router with multi-template rendering.
package main
import (
"github.com/gin-gonic/gin"
"github.com/gin-contrib/multitemplate"
)
func main() {
r := gin.Default()
r.HTMLRender = multitemplate.NewRenderer()
r.GET("/", func(c *gin.Context) {
c.HTML(200, "index.html", nil)
})
r.Run()
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.1.2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.