mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 06:20:38 -07:00
perf: make the most of streamed rendering
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { stringify } from '../util/underscore'
|
||||
|
||||
export class StreamedEmitter {
|
||||
public html: any = '';
|
||||
public buffer = '';
|
||||
public stream = new (require('stream').PassThrough)()
|
||||
public write (html: any) {
|
||||
this.stream.write(stringify(html))
|
||||
|
||||
Reference in New Issue
Block a user