protected function fetchFromString() {
		// loader is created each time as value of index can be changed
		// maybe there is way to do this without creating new loader each time
		$loader = new \Twig_Loader_Array(array('index' => $this->template_data));
		$this->setLoader($loader);
		
		return $this->render('index', $this->template_vars);
	}
protected function fetchFromString() {
		// loader is created each time as value of index can be changed
		// maybe there is way to do this without creating new loader each time
		$loader = new \Twig_Loader_Array(array('index' => $this->template_data));
		$this->setLoader($loader);
		
		return $this->render('index', $this->template_vars);
	}
protected function fetchFromString ( ) { // loader is created each time as value of index can be changed // maybe there is way to do this without creating new loader each time $ loader = new \ Twig_Loader_Array ( array ( 'index' => $ this -> template_data ) ) ; $ this -> setLoader ( $ loader ) ; return $ this -> render ( 'index' , $ this -> template_vars ) ; }
Fetch prepared string template and return complete html document

@return string HTML document with all data included
Fetch prepared string template and return complete html document