Registry / utility / flosch-pongo2-v3

flosch-pongo2-v3

JSON →
library3.0.0-20141028000813-5e81b817a0c4gogounverified

Package pongo2 is a Django-syntax-like template engine for Go, compatible with Django template language.

go get gopkg.in/flosch/pongo2.v3
INSTALL
IMPORT
SIG · FLOSCH-PONGO2-V3
F
flosch-pongo2-v3
utilitygov3.0.0-20141028000813-5e81b817a0c4
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
gopkg.in/flosch/pongo2.v3

Renders a simple template with a variable using pongo2.

package main import ( "fmt" "gopkg.in/flosch/pongo2.v3" ) func main() { tpl, err := pongo2.FromString("Hello {{ name }}!") if err != nil { panic(err) } out, err := tpl.Execute(pongo2.Context{"name": "World"}) if err != nil { panic(err) } fmt.Println(out) }
Debug
Known issues
breakingVersion v3 is outdated; consider using the newer v4 or v5 releases.
fix
Update to gopkg.in/flosch/pongo2.v4 or v5 for latest features and fixes.
affects: 3.x
Upgrade
Version history
3.0.0-20141028000813-5e81b817a0c4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
flosch-pongo2-v3 — go get flosch-pongo2-v3 · libregistry