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
add documentation apply.rst #3946
base: 3.x
Are you sure you want to change the base?
add documentation apply.rst #3946
Conversation
This does not make sense to me: all filters that operate on strings are compatible (including any third-party filter fitting this). And when chaining filters, this actually applies to the first filter of the chain (next filters have to operate on the output of the previous one). |
There is no indication about 'filters that operates on string' in the documentation about apply, there is neither a list to reference them globally. |
But this list will also be incomplete: extensions can provide lots of filters, and This restriction about filters applying on strings is just because And even if we do a list, we should not have examples for all of them (with broken rST markup for all of them that will break the rendering on the website, and wrong comments about the output for some of them), that don't provide a full documentation about that. If such a list is added, it should link to the documentation of each filter. Also, this seems to miss half of the filters that apply on strings among the list available in https://twig.symfony.com/doc/3.x/#reference (and some more if we account for the filters provided by Symfony, which are listed below) |
I understand your point. |
47b7d44
to
2babc20
Compare
@stof |
Add documentation for twig filters compatible with tag apply tag uses