original_string: public function render($template = '', $data = []) {
  		if (!isset($this->blocks[$template])) {
  			$this->blocks[$template] = $this->blockFactory->create($template);
  		}
  		$block = $this->blocks[$template];
  		$block->setData($data);
  		return $block->render();
  	}
code: public function render($template = '', $data = []) {
  		if (!isset($this->blocks[$template])) {
  			$this->blocks[$template] = $this->blockFactory->create($template);
  		}
  		$block = $this->blocks[$template];
  		$block->setData($data);
  		return $block->render();
  	}
code_tokens: public function render ( $ template = '' , $ data = [ ] ) { if ( ! isset ( $ this -> blocks [ $ template ] ) ) { $ this -> blocks [ $ template ] = $ this -> blockFactory -> create ( $ template ) ; } $ block = $ this -> blocks [ $ template ] ; $ block -> setData ( $ data ) ; return $ block -> render ( ) ; }
docstring: Render a block.
  
  @param string $template
  @param array $data
  @return string
docstring_tokens: Render a block .