mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 14:30:38 -07:00
feat: support filters in if/unless/case, see #287
This commit is contained in:
+2
-2
@@ -101,8 +101,8 @@ export class Liquid {
|
||||
}
|
||||
|
||||
public _evalValue (str: string, ctx: Context): IterableIterator<any> {
|
||||
const value = new Value(str, this.filters, this)
|
||||
return value.value(ctx)
|
||||
const value = new Value(str, this)
|
||||
return value.value(ctx, false)
|
||||
}
|
||||
public async evalValue (str: string, ctx: Context): Promise<any> {
|
||||
return toPromise(this._evalValue(str, ctx))
|
||||
|
||||
Reference in New Issue
Block a user