mark2web/vendor/github.com/flosch/pongo2/v4/pongo2.go

15 lines
325 B
Go
Raw Normal View History

2022-02-28 10:28:34 +01:00
package pongo2
// Version string
const Version = "4.0.2"
// Must panics, if a Template couldn't successfully parsed. This is how you
// would use it:
// var baseTemplate = pongo2.Must(pongo2.FromFile("templates/base.html"))
func Must(tpl *Template, err error) *Template {
if err != nil {
panic(err)
}
return tpl
}