Skip to content

Commit c01dc44

Browse files
committed
feat: add attachView method
1 parent c9cb18a commit c01dc44

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/App.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,15 @@ public function attach(callable $code)
178178
$this->setupErrorHandler();
179179
}
180180

181+
/**
182+
* Attach a view engine to Leaf
183+
* @param mixed $view The view engine to attach
184+
*/
185+
public function attachView($view)
186+
{
187+
Config::attachView($view);
188+
}
189+
181190
/**
182191
* Evade CORS errors
183192
*

0 commit comments

Comments
 (0)