Is there any way to merge (concatenate) block content?
When you define block, you can override it. But I need some way around to append to it. Keep everything what was there so far and add few lines of html.
thats the very same approach as writing it there explicitly.
Some parts of website need to put lines to header, but different. And on each page/url there will be different set of header tags i need to include. This doesnt look like solution.
but it works only for 1 extra append. I need to put there many (unknown) lines from different parts of theme. block “title” would get completely overwritten so only last 2 meta tags would be there.
I need some placeholder and append to it from different templates and parts of theme, different number of times.
I have created many partials and my content is saved in structured data. To generate body I’m using ranges and including corresponding partials (kind of “page builder”). But sometimes i need to put html in head but i know it after it occures in range in body.
That would mean to duplicate all ranges and conditionals in head which are already done deeper in body. It would be difficult to maintain one block in different files.