Skip to content

Commit

Permalink
templating
Browse files Browse the repository at this point in the history
  • Loading branch information
schpill committed Jun 8, 2017
1 parent da5cc5d commit bdac7b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1587,6 +1587,12 @@ function vue($file, $args = [], $status = 200)
);
}

$layoutContent = str_replace(
['$this'],
['$self'],
$layoutContent
);

response(
codeEvaluation(
$layoutContent,
Expand Down
2 changes: 1 addition & 1 deletion lib/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ public function handling($routes, $quit = true)
if ($this->uri) {
route($route);

if ($middleware = $route->getMiddleware()) {
if ($middleware = $this->uri->getMiddleware()) {
if (!is_array($middleware)) {
$middleware = [$middleware];
}
Expand Down

0 comments on commit bdac7b1

Please sign in to comment.