Skip to content

Commit

Permalink
feat: add attachView method
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Jan 16, 2025
1 parent c9cb18a commit c01dc44
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,15 @@ public function attach(callable $code)
$this->setupErrorHandler();
}

/**
* Attach a view engine to Leaf
* @param mixed $view The view engine to attach
*/
public function attachView($view)
{
Config::attachView($view);
}

/**
* Evade CORS errors
*
Expand Down

0 comments on commit c01dc44

Please sign in to comment.