Author: Victor Farazdagi
Inheritance: extends Base, implements Phrozn\Processor
コード例 #1
0
ファイル: TextileTest.php プロジェクト: farazdagi/phrozn
 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));
 }
コード例 #2
0
ファイル: Textile.php プロジェクト: ntulip/phrozn
 /**
  * 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);
 }