-
Notifications
You must be signed in to change notification settings - Fork 14
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
CSV format for data #67
Comments
The twig context is a map of variable names to variable values. I don't see how you would define that in a CSV format. |
well, I had this JSON exported from PHPStorm (DataGrip) and couldn't use it with twigfiddle as I didn't know what was the name of the object I can iterate on: https://twigfiddle.com/caaokq hence, my thought of having a CSV that should be converted to an assoc-array that I can iterate over easily. |
Well, you should be doing something like |
In your case you can replace The purpose of twigfiddle is to try and debug some twig code, I don't think I will integrate this feature. I'm even going to remove lots of useless features such as "creation of public / private fiddles" or search filters etc in order to fit with that simple and pragmatic vision. |
@ninsuo note that |
I tried to use dump() function to see the available context, but it wasn't working. any reasons why this is not available? anyway, I understand your position and if this is not going to be included in the app,then this issue can be closed with a won't-fix resolution. |
Hello
Yes dump is not available because it dumps html where twigfiddle renders
text/plain.
I may implement it anyway (using the same kind of architecture than the
profiler). Could you create a separate issue for this?
Thanks
Alain
Le dim. 16 févr. 2020 à 10:44, Gabi Udrescu <notifications@github.com> a
écrit :
… I tried to use dump() function to see the available context, but it wasn't
working. any reasons why this is not available?
anyway, I understand your position and if this is not going to be included
in the app,then this issue can be closed with a won't-fix resolution.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67?email_source=notifications&email_token=AA7VWRHMFAN53I4WIHP5OD3RDEDI5A5CNFSM4KKDO6SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL4CCRY#issuecomment-586686791>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7VWRFU2LAAUYPJZ3XHUQTRDEDI5ANCNFSM4KKDO6SA>
.
|
the reason I wanted to use dump() function was to see what variables I have available in the twig env. instead of implementing a new dump function, I would rather list all variables in TwigFiddle UI. wdyt? |
Rendering the context really depends on ... the context. Thus, using the {{ dump() }} function makes sense, and without recoding it. It's more changing the default location of its result. |
I feel this fiddle should support CSV format as data format. how I plan to use this feature:
I can provide an implementation, if you want.
The text was updated successfully, but these errors were encountered: