Skip to content

Commit 406b448

Browse files
authored
Merge pull request #85 from LaswitchTech/dev
General: Version bumped to v0.0.85
2 parents 73087ae + 4ac3e83 commit 406b448

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.84
1+
v0.0.85

src/Objects/Route.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,11 @@ protected function hook(string $hook): self
538538

539539
/**
540540
* Render the route
541+
*
542+
* @param bool $full
543+
* @return self
541544
*/
542-
public function render(): self
545+
public function render(bool $full = true): self
543546
{
544547
// Check if the route is a module
545548
if(in_array(str_replace('/','',$this->Route), $this->Router::Modules)){
@@ -563,7 +566,7 @@ public function render(): self
563566
}
564567

565568
// Load the template
566-
if($this->Template && !$this->Interrupt){
569+
if($full && $this->Template && !$this->Interrupt){
567570

568571
// Load the Template
569572
require_once $this->template();

src/Router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function set(string $route): self
235235
* @param string $route
236236
* @return self
237237
*/
238-
public function render($route = null): self
238+
public function render(?string $route = null, bool $full = true): self
239239
{
240240
// Set the route
241241
if($route){
@@ -250,7 +250,7 @@ public function render($route = null): self
250250
}
251251

252252
// Render the route
253-
$this->Route->render();
253+
$this->Route->render((($this->Route->namespace() === $route) ? $full : true));
254254

255255
// Return the instance
256256
return $this;

0 commit comments

Comments
 (0)