There are quite a few changes here, so please let me know if I've gone down the wrong path. Open to working on changing the whole approach 😁
I thought it would be helpful to reuse existing page content, so I implemented Into<CreateBlock> for Block to allow this.
The new CreateBlock struct avoids the BlockCommon that isn't needed for creating a page. I think CreateBlock or Block could just be a macro over the other, but I thought duplication was cheaper in this case as the Into<CreateBlock> also links them together.
There are quite a few changes here, so please let me know if I've gone down the wrong path. Open to working on changing the whole approach 😁
I thought it would be helpful to reuse existing page content, so I implemented
Into<CreateBlock> for Block
to allow this.The new CreateBlock struct avoids the
BlockCommon
that isn't needed for creating a page. I thinkCreateBlock
orBlock
could just be a macro over the other, but I thought duplication was cheaper in this case as theInto<CreateBlock>
also links them together.