public function shortcodeBlock(Event $event, array $atts, $content, $tag)
    {
        $out = '';
        if (isset($atts[0])) {
            $id = intval($atts[0]);
            try {
                $block = TableRegistry::get('Block.Blocks')->get($id);
                $out = $event->subject()->render($block);
            } catch (\Exception $ex) {
                $out = !Configure::read('debug') ? '' : "<!-- block #{$id} not found -->";
            }
        }

        return $out;
    }