Gush\Template\Pats\PatTemplate::render PHP Method

render() public method

public render ( )
    public function render()
    {
        if (empty($this->parameters)) {
            throw new \RuntimeException('Template has not been bound');
        }
        $pat = $this->parameters['pat'];
        $placeholders = $this->parameters;
        unset($placeholders['pat']);
        return $this->renderPat($placeholders, $pat);
    }

Usage Example

Esempio n. 1
0
 /**
  * @test
  */
 public function renders_string_with_placeholders_filled()
 {
     $this->template->bind(['author' => self::TEST_AUTHOR]);
     $this->assertContains(self::TEST_AUTHOR, $this->template->render());
 }
All Usage Examples Of Gush\Template\Pats\PatTemplate::render