mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
chore(TypeScript): refactor objects into classes
fix: `Nil`(null, undefined) now renders as empty string change: `parser.parseValue()` renamed to `parser.parseOutput` change: registered tags/filters become static and shared across different liquid instances
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
export default class Token {
|
||||
type: string
|
||||
line: number
|
||||
raw: string
|
||||
input: string
|
||||
file: string
|
||||
value: string
|
||||
constructor(raw, pos, input, file, line) {
|
||||
this.line = line
|
||||
this.raw = raw
|
||||
this.input = input
|
||||
this.file = file
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user