mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
feat: support {{block.super}}, see #38
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { Drop } from './drop'
|
||||
|
||||
export class BlockDrop extends Drop {
|
||||
constructor (
|
||||
// the block render from layout template
|
||||
private superBlockRender: () => Iterable<string> = () => ''
|
||||
) {
|
||||
super()
|
||||
}
|
||||
public super () {
|
||||
return this.superBlockRender()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user