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
Beautify Twig Hash & Array #615
Labels
Comments
I am not currently parsing the insides of the Twig tags, but I certainly should be. If I were to parse it similarly to how I parse JavaScript the output would look like: Default presentation
and
Setting options
|
That looks neat! As long as it is consistent, I'm very happy. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1. Hash
Source
{% include 'any.twig' with { 'foo':bar} %}
Expected
{% include 'any.twig' with { 'foo': bar } %}
Result
{% include 'any.twig' with { 'foo':bar} %}
2. Array
Source
{% set foo = [1,{"foo":"bar"}] %}
Expected
{% set foo = [1, {"foo": "bar"}] %}
Result
{% set foo = [1,{"foo":"bar"}] %}
The text was updated successfully, but these errors were encountered: