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

Collections in Twig #483

Open
AugustMiller opened this issue Mar 22, 2023 · 1 comment
Open

Collections in Twig #483

AugustMiller opened this issue Mar 22, 2023 · 1 comment

Comments

@AugustMiller
Copy link
Contributor

We should explicitly state that Collections in Twig behave exactly the same as collections in PHP, except for methods that only accept anonymous functions/closures as arguments.

@khalwat
Copy link

khalwat commented Mar 22, 2023

And potentially add a link to Craft Closure, which allows you to use Collections in Twig the way you thought you could:

https://github.com/nystudio107/craft-closure

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