mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
perf: make the most of streamed rendering
This commit is contained in:
@@ -3,10 +3,14 @@ import { Drop } from './drop'
|
||||
export class BlockDrop extends Drop {
|
||||
constructor (
|
||||
// the block render from layout template
|
||||
private superBlockRender: () => Iterable<string> = () => ''
|
||||
private superBlockRender: () => Iterable<any> = () => ''
|
||||
) {
|
||||
super()
|
||||
}
|
||||
/**
|
||||
* Provide parent access in child block by
|
||||
* {{ block.super }}
|
||||
*/
|
||||
public super () {
|
||||
return this.superBlockRender()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user