feat: support {{block.super}}, see #38

This commit is contained in:
harttle
2021-01-24 02:57:48 +08:00
parent 0e0dc2adf0
commit a3af44dc10
5 changed files with 81 additions and 21 deletions
+13
View File
@@ -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()
}
}