Closed mruz closed 4 years ago
Then we could pass options on the engine declaration:
$di->view ->setViewsDir('./views/') ->setEngines([ '.sleet' => function ($view) use ($di) { return new Ice\Mvc\View\Engine\Sleet($view, $di, [ 'compileDir' => './tmp/' ]); }, ]);
Also compile should be "always" by default, but it's "never" if we don't specify the option.
compile
Then we could pass options on the engine declaration: