Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

#89 | Enable usage of {{ patternPartial }}#90

Open
vebersol wants to merge 1 commit into
pattern-lab:masterfrom
vebersol:public-patternPartial
Open

#89 | Enable usage of {{ patternPartial }}#90
vebersol wants to merge 1 commit into
pattern-lab:masterfrom
vebersol:public-patternPartial

Conversation

@vebersol
Copy link
Copy Markdown

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'];
Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants