mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-08 22:20:05 +00:00
15 lines
340 B
Go
15 lines
340 B
Go
|
package pongo2
|
||
|
|
||
|
// Version string
|
||
|
const Version = "dev"
|
||
|
|
||
|
// Helper function which 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
|
||
|
}
|