Timber\Loader::template_exists PHP Метод

template_exists() защищенный Метод

protected template_exists ( string $file ) : boolean
$file string
Результат boolean
    protected function template_exists($file)
    {
        foreach ($this->locations as $dir) {
            $look_for = $dir . $file;
            if (file_exists($look_for)) {
                return true;
            }
        }
        return false;
    }