Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Prettier Liquid: Simple behaviour (positional args + named args) #24

Closed
Tracked by #5
charlespwd opened this issue May 31, 2022 · 1 comment
Closed
Tracked by #5

Comments

@charlespwd
Copy link
Collaborator

charlespwd commented May 31, 2022

A couple of tags support positional and named arguments. We should format those properly.

Input

{% section     'foo'  %}
{% increment   bar   %}
{% cycle a, b[a], c.a-thing["a"] %}

Expected

{% section "foo" %}
{% increment bar %}
{% cycle a, b[a], c["a-thing"].a %}
@charlespwd
Copy link
Collaborator Author

Closing as this seems simple but there are edge cases. E.g. layout takes none as a special argument.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant