private function loadAndParseRoute($route)
    {
         // Get meta into view structure
         $meta = $this->getMetaForRoute($route);
         unset($meta["__toc__"]);
         unset($meta["views"]);

        // Get filtered content from route
        list($routeIndex, , $filtered) =
            $this->mapRoute2Content($route);

        // Merge frontmatter with meta
        // then merge frontmatter base into views main
        $filtered->frontmatter = array_merge_recursive_distinct(
            $meta,
            $filtered->frontmatter
        );

        // Do phase 2 processing to get new filtered content
        // (and updated frontmatter)
        $this->processContentPhaseTwo($filtered);

        // Create complete frontmatter, inluding content
        $filtered->frontmatter["data"]["content"] = isset($filtered->text)
            ? $filtered->text
            : null;

        // Load additional content for view, based on data-meta
        $view = ["main" => $filtered->frontmatter];
        $this->loadAdditionalContent($view, $route, $routeIndex);

        return $view["main"];
    }
private function loadAndParseRoute($route)
    {
         // Get meta into view structure
         $meta = $this->getMetaForRoute($route);
         unset($meta["__toc__"]);
         unset($meta["views"]);

        // Get filtered content from route
        list($routeIndex, , $filtered) =
            $this->mapRoute2Content($route);

        // Merge frontmatter with meta
        // then merge frontmatter base into views main
        $filtered->frontmatter = array_merge_recursive_distinct(
            $meta,
            $filtered->frontmatter
        );

        // Do phase 2 processing to get new filtered content
        // (and updated frontmatter)
        $this->processContentPhaseTwo($filtered);

        // Create complete frontmatter, inluding content
        $filtered->frontmatter["data"]["content"] = isset($filtered->text)
            ? $filtered->text
            : null;

        // Load additional content for view, based on data-meta
        $view = ["main" => $filtered->frontmatter];
        $this->loadAdditionalContent($view, $route, $routeIndex);

        return $view["main"];
    }
private function loadAndParseRoute ( $ route ) { // Get meta into view structure $ meta = $ this -> getMetaForRoute ( $ route ) ; unset ( $ meta [ "__toc__" ] ) ; unset ( $ meta [ "views" ] ) ; // Get filtered content from route list ( $ routeIndex , , $ filtered ) = $ this -> mapRoute2Content ( $ route ) ; // Merge frontmatter with meta // then merge frontmatter base into views main $ filtered -> frontmatter = array_merge_recursive_distinct ( $ meta , $ filtered -> frontmatter ) ; // Do phase 2 processing to get new filtered content // (and updated frontmatter) $ this -> processContentPhaseTwo ( $ filtered ) ; // Create complete frontmatter, inluding content $ filtered -> frontmatter [ "data" ] [ "content" ] = isset ( $ filtered -> text ) ? $ filtered -> text : null ; // Load additional content for view, based on data-meta $ view = [ "main" => $ filtered -> frontmatter ] ; $ this -> loadAdditionalContent ( $ view , $ route , $ routeIndex ) ; return $ view [ "main" ] ; }
Load view details for additional route, merged with meta if any.

@param string $route to load.

@return array with view data details.
Load view details for additional route merged with meta if any .