Registry / web-framework / iris-contrib-pongo2

iris-contrib-pongo2

JSON →
library0.0.1gogounverified

A Django-syntax-like template engine for Go.

go get github.com/iris-contrib/pongo2
INSTALL
IMPORT
SIG · IRIS-CONTRIB-PONGO
I
iris-contrib-pongo2
web-frameworkgov0.0.1
harness data pending
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.

Agent activity
4 hits · last 30 days
node
4
Resources
iris-contrib-pongo2 — go get iris-contrib-pongo2 · libregistry