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

Prettier Liquid: VariableLookup in drops #40

Closed
Tracked by #5
charlespwd opened this issue Jul 29, 2022 · 0 comments · Fixed by #41
Closed
Tracked by #5

Prettier Liquid: VariableLookup in drops #40

charlespwd opened this issue Jul 29, 2022 · 0 comments · Fixed by #41
Assignees

Comments

@charlespwd
Copy link
Collaborator

charlespwd commented Jul 29, 2022

Not expecting a lot of different formatting except for things like spaces inside lookups and nested lookups.

Things to support:

{{ variable }}
{{ variable.property }}
{{ variable.property-with-dashes }}
{{ variable["property with quotes"] }}
{{ variable[other_variable] }}
{{ [global] }}
{{ 1 }}
{{ true }}
{{ empty }}
{{ "string" }}
{{ 'string' }}
{{ (0..2) }}

This difference should be that we'll print those as lookups instead of passthrough markup. Just that should be a lot of refactoring and ohm syntax updates.

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