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

15 lines
323 B
Go
Raw Normal View History

2015-07-30 15:43:22 +00:00
package pongo2
// Version string
2017-12-28 01:56:23 +00:00
const Version = "dev"
2015-07-30 15:43:22 +00:00
2017-12-28 01:56:23 +00:00
// Must panics, if a Template couldn't successfully parsed. This is how you
// would use it:
2015-07-30 15:43:22 +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
}