mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
refactor: add emitter for code generation
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import Context from '../context/context'
|
||||
import Token from '../parser/token'
|
||||
import { Emitter } from '../render/emitter'
|
||||
|
||||
export default interface ITemplate {
|
||||
token: Token;
|
||||
render(ctx: Context): Promise<string>;
|
||||
render(ctx: Context, emitter: Emitter): Promise<string>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user