-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter changes #37
Comments
I could be wrong but it looks like you also changed |
|
For
so the output depends on the input. For pad, I think a
|
Makes sense to me... are you saying you are okay adding a filter like this?
Hmm how would displaying a float with 2 decimals work? I'm thinking of
I agree but even that case where there is only a single required argument is pretty common I'd think. Besides, most programming languages default to positional arguments and the only language I can think of off the top of my head that does kwargs is Python, which also supports positional args. |
Yes. Either that or overload For format, I'm thinking to basically use the Rust format: https://saghm.github.io/five-rust-things/#padding-format-operator |
The sort filter is very necessary. Very much so. I want to use multi-sorting, but at least like in tera v1. |
Here is the issue to mention:
Known missing:
Current changes:
pat
argument for start/end rather than separate filtersint
andfloat
filter do not have a default anymoreround
filter does not take acommon
method anymore, it's the default and should not be filled if neededindent
filter now takes awidth
param rather thanprefix
map
,group_by
andfilter
filter will error if the attribute ends up being undefined on one of the valueas_str
has been renamed tostr
The text was updated successfully, but these errors were encountered: