registerDecorator(new \Chibi\Util\Minify()); $view->registerDecorator($assets); $view->context = $context; $view->assets = $assets; $view->render(); } protected function renderExternal($viewName, $context = null) { $view = new View($viewName); $view->context = $context !== null ? $context : $this->context; $view->assets = $this->assets; $view->render(); } }