Shopify / liquid

Liquid markup language. Safe, customer facing template language for flexible web apps.
https://shopify.github.io/liquid/
MIT License
11.05k stars 1.38k forks source link

Add deep search for filter taking in properties #1749

Open andershagbard opened 11 months ago

andershagbard commented 11 months ago

This PR allows for backward compatibility deep search :woah:

Like so:

{{ input | where: 'some.nested.property', 'foo', deep: true }}
{{ input | where: 'some_nested_property', 'foo', deep: '_' }} # Custom separator

Added deep search for the following filters. This should be all Liquid filters which takes in a property argument:

andershagbard commented 8 months ago

@dylanahsmith I am not sure if you still work on Liquid, but I would love for someone in the Liquid team to take a look at this PR.