/**
  * Return the applicable path.
  *
  * @return null|string
  */
 public function path()
 {
     if (in_array($this->object->getFileExtension(), ['html', 'twig'])) {
         return $this->object->getViewPath();
     } else {
         return $this->object->getAssetPath();
     }
 }