Adds the ability to render block contents from PHP.
// Render all model's blocks
\Winter\Blocks\Classes\Block::renderAll($model->blocks);
// render a model block
\Winter\Blocks\Classes\Block::render($model->blocks[0]);
// Render a defined block
\Winter\Blocks\Classes\Block::render('title', [
'content' => 'Lorem ipsum dolor sit amet.',
'alignment_x' => 'left',
'size' => 'h1',
]);
Adds the ability to render block contents from PHP.