mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-17 05:10:40 -07:00
feat: nested property for the where filter, #178
This commit is contained in:
@@ -8,9 +8,9 @@ type FilterArg = string|KeyValuePair
|
||||
export type FilterArgs = FilterArg[]
|
||||
|
||||
export class Filter {
|
||||
private name: string
|
||||
public name: string
|
||||
public args: FilterArgs
|
||||
private impl: FilterImplOptions
|
||||
private args: FilterArgs
|
||||
private static impls: {[key: string]: FilterImplOptions} = {}
|
||||
|
||||
public constructor (name: string, args: FilterArgs, strictFilters: boolean) {
|
||||
|
||||
@@ -3,9 +3,9 @@ import { FilterArgs, Filter } from './filter/filter'
|
||||
import { Context } from '../context/context'
|
||||
|
||||
export class Value {
|
||||
public readonly filters: Filter[] = []
|
||||
public readonly initial: string
|
||||
private strictFilters: boolean
|
||||
private initial: string
|
||||
private filters: Filter[] = []
|
||||
|
||||
/**
|
||||
* @param str value string, like: "i have a dream | truncate: 3
|
||||
|
||||
Reference in New Issue
Block a user