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;
    }
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;
    }
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 ; }
Render a layout if the current view requires it.

@since 1.0.0

@throws Templating_Exception
Render a layout if the current view requires it .