public function testRender() { $processor = new Processor(); $tpl = file_get_contents($this->path . 'tpl1.textile'); $rendered = $processor->render($tpl); $static = file_get_contents($this->path . 'tpl1.textile.html'); $this->assertSame(trim($static), trim($rendered)); }
/** * Parse the incoming template * * @param string $tpl Source template content * @param array $vars List of variables passed to template engine * * @return string Processed template */ public function render($tpl, $vars = array()) { return $this->textile->TextileThis($tpl); }