mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 22:40:48 -07:00
refactor: remove mock-fs from dev dependency
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { assign } from 'src/util/underscore'
|
||||
import html from './html'
|
||||
import str from './string'
|
||||
import math from './math'
|
||||
@@ -7,6 +6,4 @@ import array from './array'
|
||||
import date from './date'
|
||||
import obj from './object'
|
||||
|
||||
const filters = assign({}, html, str, math, url, date, obj, array)
|
||||
|
||||
export default filters
|
||||
export default { ...html, ...str, ...math, ...url, ...date, ...obj, ...array }
|
||||
|
||||
@@ -45,7 +45,7 @@ export default {
|
||||
if (this.with) {
|
||||
hash[filepath] = evalValue(this.with, scope)
|
||||
}
|
||||
const templates = await this.liquid.getTemplate(filepath, scope.opts.root)
|
||||
const templates = await this.liquid.getTemplate(filepath, scope.opts)
|
||||
scope.push(hash)
|
||||
const html = await this.liquid.renderer.renderTemplates(templates, scope)
|
||||
scope.pop(hash)
|
||||
|
||||
@@ -31,7 +31,7 @@ export default {
|
||||
if (scope.blocks[''] === undefined) {
|
||||
scope.blocks[''] = html
|
||||
}
|
||||
const templates = await this.liquid.getTemplate(layout, scope.opts.root)
|
||||
const templates = await this.liquid.getTemplate(layout, scope.opts)
|
||||
scope.push(hash)
|
||||
scope.blockMode = BlockMode.OUTPUT
|
||||
const partial = await this.liquid.renderer.renderTemplates(templates, scope)
|
||||
|
||||
Reference in New Issue
Block a user