public function go($path) { $asset = \Route::getName(); $inputfile = HOME_DIR . '/templates/' . \App::get('template') . '/' . $asset . '/' . $path; $file = new \File($inputfile); if ($file->exists()) { $this->response->setMIME($file->detectMime())->out($file->get()); } }