-
Notifications
You must be signed in to change notification settings - Fork 275
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
I cannot use filter with function as parameters #734
Comments
Hello there, we are having the same problems in our projects with the twig filter |filter().
These lines will cause the error as described above:
Is this filter supported, as seen in the implementation notes? Thank you! |
Hello @jzuleger, You shared the documentation from twig who runs on php language. On the php version, the following filter is implemented, not in the twigjs package. |
Hey @dupasj, that's absolutly right. My lines are copied from the documentation for the twig version for php. But the php documentation is added as Docs reference in the twig.js implementation note -e.g. for filters. So my understanding would be, that if they are supported, the filters would work as they would in php. But the filter "filter" does not. |
@jzuleger , twigjs doesn't support the https://www.npmjs.com/package/twing Disclaimer: I'm the author of Twing and I rarely advertise my work here. But in this case, since it is about an unsupported feature of twig.js, I allowed myself to do so. :) |
Duplicate of #652 |
Hi :)
I don't know if it's me or not, but I am unable to use filter function in twig. Here is my test script:
I would like to extend twigjs to add map/filter filters. But twigjs seems to doesn't implement function parser :/ Here is my error staks:
How could we fix this ?
I found a small solution, to build the function in the extension like this:
That would be nice if the twig parser is already enable to parse directely the function.
Thanks !
The text was updated successfully, but these errors were encountered: