-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
String values should evaluate "first" and "last" #781
Labels
Comments
Interestingly, using Shopify/Liquid directly instead of via a Shopify store, we get the following: require 'liquid'
source = <<~LIQUID
{% assign b = "one" %}
size: {{ b.size }}
length: {{ b.length }}
first: {{ b.first }}
last: {{ b.last }}
LIQUID
template = Liquid::Template.parse(source)
puts template.render output
|
Thank you two for the investigation. I think we can support this feature in liquidjs, people can’t blame us for not returning nil right? |
See also Shopify/liquid#1881. |
Closing as implemented in 10.20.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same as
size
there are other pseudo properties strings should evaluate.And
length
is one that LiquidJs supports but is not valid.Here is from the shopify's site:
The text was updated successfully, but these errors were encountered: