Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vebersol
Copy link

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

@@ -82,6 +82,7 @@ public function run() {
$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.

None yet

2 participants