mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 22:10:41 -07:00
perf: make the most of streamed rendering
This commit is contained in:
@@ -2,13 +2,9 @@ import { stringify } from '../util/underscore'
|
||||
import { Emitter } from './emitter'
|
||||
|
||||
export class SimpleEmitter implements Emitter {
|
||||
public html: any = '';
|
||||
public buffer = '';
|
||||
|
||||
public write (html: any) {
|
||||
this.html += stringify(html)
|
||||
}
|
||||
|
||||
public end () {
|
||||
return this.html
|
||||
this.buffer += stringify(html)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user