Skip to content

Commit

Permalink
If it's not a tag pair, don't add overhead to parse nothing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Sep 25, 2020
1 parent e742a33 commit 36d181d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tags/Partial.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function wildcard($tag)

$variables = array_merge($this->context->all(), $this->params->all(), [
'__frontmatter' => $this->params->all(),
'slot' => trim($this->parse()),
'slot' => $this->isPair ? trim($this->parse()) : null,
]);

return view($this->viewName($partial), $variables)
Expand Down

0 comments on commit 36d181d

Please sign in to comment.