mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
refactor: use camelCase for JavaScript APIs
BREAKING CHANGE: Options and method names in JavaScript API are now renamed to cammelCase, for a complete list see #109
This commit is contained in:
@@ -21,7 +21,7 @@ export class Filter {
|
||||
}
|
||||
async render (value: any, scope: Scope) {
|
||||
const argv: any[] = []
|
||||
for(let arg of this.args) {
|
||||
for (const arg of this.args) {
|
||||
if (isArray(arg)) argv.push([arg[0], await evalValue(arg[1], scope)])
|
||||
else argv.push(await evalValue(arg, scope))
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ export default class Value {
|
||||
}
|
||||
async value (scope: Scope) {
|
||||
let val = await evalExp(this.initial, scope)
|
||||
for (let filter of this.filters) {
|
||||
for (const filter of this.filters) {
|
||||
val = await filter.render(val, scope)
|
||||
}
|
||||
return val
|
||||
|
||||
Reference in New Issue
Block a user