src/Gelembjuk/Templating/TemplatingTrait.php
public function fetchTemplate() {
		if ($this->template != '' && 
			$this->template_data == '' &&
			!$this->checkTemplateExists($this->template)) {
				
			throw new \Exception(sprintf('Template file %s not found',$this->template));
		}
		
		if ($this->template != '') {
			return $this->fetchFromFile();
		} else {
			return $this->fetchFromString();
		}
	}
public function fetchTemplate() {
		if ($this->template != '' && 
			$this->template_data == '' &&
			!$this->checkTemplateExists($this->template)) {
				
			throw new \Exception(sprintf('Template file %s not found',$this->template));
		}
		
		if ($this->template != '') {
			return $this->fetchFromFile();
		} else {
			return $this->fetchFromString();
		}
	}
Fetch prepared template and return complete html document

@return string HTML document with all data included