Open
Description
liquid-rust version: 0.26.0
rust version: 1.63.0
OS: linux
I've been referencing this page of the liquid docs, and my understanding of the nil
and EmptyDrop
type is that both of the following should be possible:
{% assign var = value | default: 42 %}
{% assign var = data.value | default: 42 %}
In using liquid-rust, however, I'm finding that the second case fails for me if data.value
does not already exist. I get an error like:
liquid: Unknown index
with:
variable=data
requested index=value
available indexes=other, more_data
from: {% assign var = data["value"] | default : 42%}
I was looking for an existing issue for this but didn't find anything, am I missing something?
Metadata
Metadata
Assignees
Labels
No labels