diff --git a/docs/liquid-filters.md b/docs/liquid-filters.md index 79d01c2..df485b7 100644 --- a/docs/liquid-filters.md +++ b/docs/liquid-filters.md @@ -506,16 +506,6 @@ _Example_: `now | dateModify "-1.5h"` will subtract an hour and thirty minutes f _Aliases_: `date_modify`\ -_Implementation_: `github.com/Masterminds/sprig/v3.dateModify` - -## `date_modify` - - - - - - - _Implementation_: `github.com/Masterminds/sprig/v3.dateModify` ## `decryptAES` @@ -1742,16 +1732,6 @@ _Example_: `mustWithout ( list 1 2 3 4 5) 1 3 5` returns `[2, 4]`. _Implementation_: `github.com/Masterminds/sprig/v3.mustWithout` -## `must_date_modify` - - - - - - - -_Implementation_: `github.com/Masterminds/sprig/v3.mustDateModify` - ## `nindent` diff --git a/template/liquid.go b/template/liquid.go index 8f29e73..0828236 100644 --- a/template/liquid.go +++ b/template/liquid.go @@ -27,7 +27,14 @@ var ( liquidEngine = liquid.NewEngine() // excludedSprigFunctions contains names of Spring functions that will be excluded. - excludedSprigFunctions = []string{"date_in_zone", "hello", "now", "uuidv4"} + excludedSprigFunctions = []string{ + "date_in_zone", + "date_modify", + "hello", + "must_date_modify", + "now", + "uuidv4", + } // sprigFunctionNameAliases contains additional aliases for Sprig functions. sprigFunctionNameAliases = map[string][]string{