mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-17 21:40:39 -07:00
feat: move filters/tags to instances, fixes #188
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
import * as _ from './underscore'
|
||||
import { Token } from '../parser/token'
|
||||
import { ITemplate } from '../template/itemplate'
|
||||
import { Template } from '../template/template'
|
||||
|
||||
abstract class LiquidError extends Error {
|
||||
private token: Token
|
||||
@@ -37,7 +37,7 @@ export class ParseError extends LiquidError {
|
||||
}
|
||||
|
||||
export class RenderError extends LiquidError {
|
||||
public constructor (err: Error, tpl: ITemplate) {
|
||||
public constructor (err: Error, tpl: Template) {
|
||||
super(err, tpl.token)
|
||||
this.name = 'RenderError'
|
||||
this.message = err.message
|
||||
|
||||
Reference in New Issue
Block a user