Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/PatternLab/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,9 @@ protected function generateViewAllPages() {
$globalData["patternLabFoot"] = $stringLoader->render(array("string" => Template::getHTMLFoot(), "data" => array("cacheBuster" => $partials["cacheBuster"], "patternData" => json_encode($patternData))));

// render the parts and join them
$header = $patternLoader->render(array("pattern" => $patternHead, "data" => $globalData));
$header = $patternLoader->render(array("pattern" => $patternHead, "data" => $partials));
$code = $filesystemLoader->render(array("template" => "viewall", "data" => $partials));
$footer = $patternLoader->render(array("pattern" => $patternFoot, "data" => $globalData));
$footer = $patternLoader->render(array("pattern" => $patternFoot, "data" => $partials));
$viewAllPage = $header.$code.$footer;

// if the pattern directory doesn't exist create it
Expand Down