pageboard / client

Web site building system - client packages
MIT License
4 stars 0 forks source link

pagecut: mount block could merge block.content inside overriding template type #113

Open kapouer opened 4 years ago

kapouer commented 4 years ago

This would be a huge easy step toward dynamic element definition. Blocks#mount takes mounts block.content and overriding element just has to sport a "content" block. Currently the template block must include a content block that "mount" content using matchdom html: https://github.com/pageboard/client/blob/fa042fc48f1788906b9b0b5d94c05b9d44336b40/packages/site/elements/template.js#L118 It could just do nothing and expose block-content="<content-id>". Also pagecut could provide a "filter" option that only merges wanted blocks; that would improve over current content block, which filters the dom after it has been fully merged