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.
pongo2
✓ github.com/iris-contrib/pongo2
Renders a simple template string with a context variable.
package main
import (
"fmt"
"github.com/iris-contrib/pongo2"
)
func main() {
tpl, err := pongo2.FromString("Hello {{ name }}!")
if err != nil {
fmt.Println(err)
return
}
out, err := tpl.Execute(pongo2.Context{"name": "World"})
if err != nil {
fmt.Println(err)
return
}
fmt.Println(out)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.