You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw in Jekyll (I'm writing a small PHP SSG inspired in it, thanks to this project) and other .liquid implementations that there's a filter called where useful to filter out an array of data. Apparently in a recent version, Jekyll also added it as a filter in a for iteration (but I didn't see it in Shopify's version).
I didn't see it in php-liquid, so here's my initial take on this filter. Tried it on a single level array, need to check it out for multidimensional cases.
Note: if available under another name in the project, please disregard. Thanks!
{% assign developers = team | where: "job","Developer" %}
I saw in Jekyll (I'm writing a small PHP SSG inspired in it, thanks to this project) and other .liquid implementations that there's a filter called
where
useful to filter out an array of data. Apparently in a recent version, Jekyll also added it as a filter in a for iteration (but I didn't see it in Shopify's version).I didn't see it in php-liquid, so here's my initial take on this filter. Tried it on a single level array, need to check it out for multidimensional cases.
Note: if available under another name in the project, please disregard. Thanks!
{% assign developers = team | where: "job","Developer" %}
The text was updated successfully, but these errors were encountered: