private function render_layout()
    {
        $snap_layout_path = \locate_template(Config::get('theme.templates_directory') . '/' . $this->extends);

        if ($snap_layout_path === '') {
            throw new Templating_Exception('Could not find layout: ' . $this->extends);
        }

        /**
         * Keep PHPStorm quiet.
         *
         * @noinspection PhpIncludeInspection
         */
        include $snap_layout_path;
    }