Add "like" comparison operator to the "where" function

This would be roughly equivalent to the SQL LIKE comparison operator, e.g.,

{{ $regex := `^bar.*$`
{{ where .Pages "Params.foo" "like" $regex }}

It’s an interesting idea, but I’ll admit I’ve never needed it before.

1 Like