mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
feat: where filter, working on #118
doc: https://shopify.github.io/liquid/filters/where/ ruby impl: https://github.com/Shopify/liquid/blob/14cd011cb5eef042af192ad5294c8f0e1ae89f06/lib/liquid/standardfilters.rb
This commit is contained in:
+10
-1
@@ -9,7 +9,16 @@ export const ctx = {
|
||||
arr: [-2, 'a'],
|
||||
obj: { foo: 'bar' },
|
||||
func: function () {},
|
||||
posts: [{ category: 'foo' }, { category: 'bar' }]
|
||||
posts: [{ category: 'foo' }, { category: 'bar' }],
|
||||
products: [
|
||||
{title: 'Vacuum', type: 'living room'},
|
||||
{title: 'Spatula', type: 'kitchen'},
|
||||
{title: 'Television', type: 'living room'},
|
||||
{title: 'Garlic press', type: 'kitchen'},
|
||||
{title: 'Coffee mug', available: true},
|
||||
{title: 'Limited edition sneakers', available: false},
|
||||
{title: 'Boring sneakers', available: true}
|
||||
]
|
||||
}
|
||||
|
||||
export async function test (src: string, dst: string) {
|
||||
|
||||
Reference in New Issue
Block a user