protected function createTag($path) { $parts = explode('.', $path); $extension = end($parts); $path = $this->generator->toAsset($path); return $this->{'create' . ucfirst($extension) . 'Tag'}($path); }