Skip to content
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

Documentation filters: 'add' arguments #47

Closed
jeroenpeters1986 opened this issue Sep 11, 2018 · 2 comments
Closed

Documentation filters: 'add' arguments #47

jeroenpeters1986 opened this issue Sep 11, 2018 · 2 comments

Comments

@jeroenpeters1986
Copy link

Hi, it seems that the docs state that the filter add works like this: {{ value|add "2" }}

It returns an {# Error: Unknown filter ADD "2" #} on my end.
It does work in my project when I use it like this: {{ value|add:2 }}

My guess is is that this is incorrect in the docs, is that right?

jeroenpeters1986 added a commit to jeroenpeters1986/djula that referenced this issue Sep 11, 2018
issue mmontone#47, change the documentation on taking arguments for the `add` filter
jeroenpeters1986 added a commit to jeroenpeters1986/djula that referenced this issue Sep 11, 2018
issue mmontone#47, change the documentation on taking arguments for the `add` filter
@mmontone
Copy link
Owner

Yes. Some parts of the documentation is probably out of date. Thanks for the PR.

mmontone added a commit that referenced this issue Sep 11, 2018
Change add-filter documentation #47
@jeroenpeters1986
Copy link
Author

You're welcome! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants