feat: move filters/tags to instances, fixes #188

This commit is contained in:
harttle
2020-03-03 00:02:29 +08:00
parent f6762078e0
commit df8a919f71
47 changed files with 240 additions and 221 deletions
+7 -5
View File
@@ -1,6 +1,8 @@
export abstract class Template<T> {
public token: T;
public constructor (token: T) {
this.token = token
}
import { Context } from '../context/context'
import { Token } from '../parser/token'
import { Emitter } from '../render/emitter'
export interface Template {
token: Token;
render(ctx: Context, emitter: Emitter): any;
}