private function getViews($route, $frontmatter)
    {
        // Arrange data into views
        $views = $this->getView($route, $frontmatter, "views", true);

        // Set defaults
        if (!isset($views["main"]["template"])) {
            $views["main"]["template"] = $this->config["template"];
        }
        if (!isset($views["main"]["data"])) {
            $views["main"]["data"] = [];
        }

        // Merge remaining frontmatter into view main data.
        $data = $this->getMetaForRoute($route);
        unset($data["__toc__"]);
        unset($data["views"]);
        unset($frontmatter["views"]);

        if ($frontmatter) {
            $data = array_merge_recursive_distinct($data, $frontmatter);
        }
        $views["main"]["data"] = array_merge_recursive_distinct($views["main"]["data"], $data);

        return $views;
    }
private function getViews($route, $frontmatter)
    {
        // Arrange data into views
        $views = $this->getView($route, $frontmatter, "views", true);

        // Set defaults
        if (!isset($views["main"]["template"])) {
            $views["main"]["template"] = $this->config["template"];
        }
        if (!isset($views["main"]["data"])) {
            $views["main"]["data"] = [];
        }

        // Merge remaining frontmatter into view main data.
        $data = $this->getMetaForRoute($route);
        unset($data["__toc__"]);
        unset($data["views"]);
        unset($frontmatter["views"]);

        if ($frontmatter) {
            $data = array_merge_recursive_distinct($data, $frontmatter);
        }
        $views["main"]["data"] = array_merge_recursive_distinct($views["main"]["data"], $data);

        return $views;
    }
private function getViews ( $ route , $ frontmatter ) { // Arrange data into views $ views = $ this -> getView ( $ route , $ frontmatter , "views" , true ) ; // Set defaults if ( ! isset ( $ views [ "main" ] [ "template" ] ) ) { $ views [ "main" ] [ "template" ] = $ this -> config [ "template" ] ; } if ( ! isset ( $ views [ "main" ] [ "data" ] ) ) { $ views [ "main" ] [ "data" ] = [ ] ; } // Merge remaining frontmatter into view main data. $ data = $ this -> getMetaForRoute ( $ route ) ; unset ( $ data [ "__toc__" ] ) ; unset ( $ data [ "views" ] ) ; unset ( $ frontmatter [ "views" ] ) ; if ( $ frontmatter ) { $ data = array_merge_recursive_distinct ( $ data , $ frontmatter ) ; } $ views [ "main" ] [ "data" ] = array_merge_recursive_distinct ( $ views [ "main" ] [ "data" ] , $ data ) ; return $ views ; }
Get details on extra views.

@param string $route       current route used to access page.
@param array  $frontmatter for the content.

@return array with page data to send to view.
Get details on extra views .