make master,v4,v5 compatible

This commit is contained in:
2022-05-06 14:34:48 +02:00
parent f969446c5b
commit 4b13bb401e
10 changed files with 866 additions and 12 deletions

15
v5/helpers.go Normal file
View File

@@ -0,0 +1,15 @@
package pongo2addons
func max(a, b int) int {
if a > b {
return a
}
return b
}
func min(a, b int) int {
if a < b {
return a
}
return b
}