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

Prettier Liquid: case, when #63

Closed
Tracked by #5
charlespwd opened this issue Aug 9, 2022 · 0 comments · Fixed by #78
Closed
Tracked by #5

Prettier Liquid: case, when #63

charlespwd opened this issue Aug 9, 2022 · 0 comments · Fixed by #78
Assignees

Comments

@charlespwd
Copy link
Collaborator

charlespwd commented Aug 9, 2022

https://shopify.dev/api/liquid/tags#case

{% # printWidth: 1 %}
{% case candy.type %}
  {% when "nerds",
    "skittles",
    "gummy bears"
  %}
    yum!
  {% else %}
    ok!
{% endcase %}

Decisions:

  • Go with the established break on second arg, after comma
  • Replace "or" with ","
@charlespwd charlespwd self-assigned this Aug 17, 2022
charlespwd added a commit that referenced this issue Aug 17, 2022
@charlespwd charlespwd linked a pull request Aug 18, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant