Skip to content

How do Shopify/Liquid and shopify.dev differ? #1881

Answered by jg-rp
sebastienros asked this question in Q&A
Discussion options

You must be logged in to vote

As far as first and last go, they are handled here:

elsif lookup_command?(i) && object.respond_to?(key)

Best guess (hopefully someone at Shopify will correct me if I’m wrong), strings on shopify.dev are active support strings, which do respond to first and last. Where as standard Ruby strings don’t.

So it’s the string objects that are different, not the Liquid engine. 🤷

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sebastienros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants