public function compileFile($path)
    {

        $fullPath = $this->resolvePath($path);

        if (!$fullPath)
            $this->throwException(
                "Template file [$path] could not be resolved in the following paths: [".
                implode(', ', $this->options['paths']).
                "], Extensions: [".implode(', ', $this->options['extensions']).
                "], Include path: ".get_include_path()."]\n\n".
                "Make sure the paths are configured correctly. If you're missing a path, add it with the [`paths`] ".
                "option or the [`->addPath`]-method."
            );

        return $this->compile(file_get_contents($fullPath), $fullPath);
    }