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

Be able to pass an array to the twig tag props #2

Closed
nacmartin opened this issue Mar 12, 2016 · 2 comments
Closed

Be able to pass an array to the twig tag props #2

nacmartin opened this issue Mar 12, 2016 · 2 comments

Comments

@nacmartin
Copy link
Member

Right now we have to pass to the Twig tag a JSON serialized string with the props. It would be nice to be able to pass an array too.

@teameh
Copy link
Contributor

teameh commented Mar 12, 2016

Haha I just wanted to add an issue for this. I agree. And why not only allow arrays and objects to be passed in? In what case would you like to handle the serialisation yourself?

@nacmartin
Copy link
Member Author

Well, nowadays I am using Symfony serializer, but I think that if you were using the JMSSerializer, it was not possible to serialize directly to arrays. Also, it is how React on Rails works (although I don't think users of this bundle need this kind of compatibility with React on Rails).

Anyways, these two points are very weak.

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