1
0
Fork 0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-11-10 08:50:04 +00:00
promcertcheck/vendor/github.com/flosch/pongo2/pongo2.go

15 lines
339 B
Go
Raw Normal View History

2015-09-04 14:27:44 +00:00
package pongo2
// Version string
const Version = "v3"
2015-09-04 14:27:44 +00:00
// Helper function which panics, if a Template couldn't
// successfully parsed. This is how you would use it:
2015-09-04 14:27:44 +00:00
// var baseTemplate = pongo2.Must(pongo2.FromFile("templates/base.html"))
func Must(tpl *Template, err error) *Template {
if err != nil {
panic(err)
}
return tpl
}