Skip to content

Conversation

vebersol
Copy link

What I've mentioned in #89 is something was available in patternlab 1 and apparently is missing in patternlab 2.

$exportClean = (isset($options["exportClean"])) ? $options["exportClean"] : false;
$data["patternLabHead"] = (!$this->exportFiles) ? $stringLoader->render(array("string" => $htmlHead, "data" => array("cacheBuster" => $data["cacheBuster"]))) : "";
$data["patternLabFoot"] = (!$this->exportFiles) ? $stringLoader->render(array("string" => $htmlFoot, "data" => array("cacheBuster" => $data["cacheBuster"], "isPattern" => true, "patternData" => json_encode($patternData)))) : "";
$data['patternPartial'] = $patternData['patternPartial'];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably have a check in case the $data is set on the .json level. unless there are reserved data keys?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants