Vincent Prouillet
Vincent Prouillet
It expands to many ways to use it, from a basic search/replace, you can have named groups replace, regex sets, get all matches and it's going to compile the regex...
> But at the same time, you should not eliminate the possibility that we can use it because of the misuse that some may give it. It's not eliminated, adding...
Sure I understand but we cannot add every features under the sun in Tera just because some some other tools might not implement them
> even though you haven't so far revealed the real reason There isn't a hidden reason. jinja2 doesn't have a regex search and replace either, ansible added a `regex_replace` filter...
IT is not implemented yet in v2: https://github.com/Keats/tera2 The main issue (afaik) to use actual types is that Tera uses keyword arguments rather than positional. I didn't dig into it...
I would be ok if someone does a PR to https://github.com/Keats/tera2 to add it there. I did think of ternaries when working on it but still didn't really feel the...
Yeah it's not working in the current version. v2 has it working already
It's still not going to happen in Tera v2
I'll take a PR for it
I completely forgot about that PR. Can people try it and see how it compares with the jinja one and whether it works for their usecase? You can just copy...