src/Gelembjuk/Templating/TemplatingTrait.php
protected function checkFileSystemTemplatingConfigured_PathCompileCache() {
		if (is_array($this->template_dir_orig)) {
			$found = false;
			
			foreach ($this->template_dir_orig as $path) {
				if ($path != '' && is_dir($path)) {
					$found = true;
					break;
				}
			}
			if (!$found) {
				throw new \Exception('Templates directory is not set');
			}
		} else {
			if (trim($this->template_dir_orig) == '') {
				throw new \Exception('Templates directory is not set');
			}
			if (!is_dir($this->template_dir_orig)) {
				throw new \Exception(sprintf('Templates directory %s not found',$this->template_dir_orig));
			}
		}
		if (trim($this->compile_dir_orig) == '') {
			throw new \Exception('Templates compile directory is not set');
		}
		if (!is_dir($this->compile_dir_orig)) {
			throw new \Exception(sprintf('Templates compile directory %s not found',$this->compile_dir_orig));
		}
		if (!is_writable($this->compile_dir_orig)) {
			throw new \Exception(sprintf('Templates compile directory %s is not writable',$this->compile_dir_orig));
		}
		if ($this->caching) {
			// if cache is On the cache path must be present
			if (!is_dir($this->cache_dir)) {
				throw new \Exception(sprintf('Templates cache directory %s not found',$this->cache_dir));
			}
			if (!is_writable($this->cache_dir)) {
				throw new \Exception(sprintf('Templates cache directory %s is not writable',$this->cache_dir));
			}
		}
		return true;
	}
protected function checkFileSystemTemplatingConfigured_PathCompileCache() {
		if (is_array($this->template_dir_orig)) {
			$found = false;
			
			foreach ($this->template_dir_orig as $path) {
				if ($path != '' && is_dir($path)) {
					$found = true;
					break;
				}
			}
			if (!$found) {
				throw new \Exception('Templates directory is not set');
			}
		} else {
			if (trim($this->template_dir_orig) == '') {
				throw new \Exception('Templates directory is not set');
			}
			if (!is_dir($this->template_dir_orig)) {
				throw new \Exception(sprintf('Templates directory %s not found',$this->template_dir_orig));
			}
		}
		if (trim($this->compile_dir_orig) == '') {
			throw new \Exception('Templates compile directory is not set');
		}
		if (!is_dir($this->compile_dir_orig)) {
			throw new \Exception(sprintf('Templates compile directory %s not found',$this->compile_dir_orig));
		}
		if (!is_writable($this->compile_dir_orig)) {
			throw new \Exception(sprintf('Templates compile directory %s is not writable',$this->compile_dir_orig));
		}
		if ($this->caching) {
			// if cache is On the cache path must be present
			if (!is_dir($this->cache_dir)) {
				throw new \Exception(sprintf('Templates cache directory %s not found',$this->cache_dir));
			}
			if (!is_writable($this->cache_dir)) {
				throw new \Exception(sprintf('Templates cache directory %s is not writable',$this->cache_dir));
			}
		}
		return true;
	}
Check if there are all settings ready to do oprtation with templates saved in filesystem
This is standard set of checks. We expect many engines can use only this

@return boolean True on success and raises exception if there are problems