diff --git a/PluboRoutes/Route/Route.php b/PluboRoutes/Route/Route.php index b9c11f9..7da2f45 100644 --- a/PluboRoutes/Route/Route.php +++ b/PluboRoutes/Route/Route.php @@ -70,6 +70,8 @@ public function hasTemplateCallback() public function getTemplate() { $template_name = $this->template; + if($this->hasTemplateCallback()) return $template_name; + $custom_directory = $this->config['template_path'] ?? ''; // Check if a custom directory is provided