Example #1
0
 /**
  * Returns the result of applying the transformer functions to the
  * HTML document at the specified path.  You can optionally limit to a
  * fragment inside the document with the $selector
  *
  * @param string $path
  * @param array $transformers Optional
  * @param string $selector Optional
  *
  * @return string
  */
 public static function fetch($path, array $transformers = array(), $selector = null)
 {
     $t = new Template($path, $selector);
     return $t->html($transformers);
 }
Example #2
0
 public function testTransformersAreOptionalToHtmlMethod()
 {
     $t = new T($this->p);
     $this->assertNotNull($t->html());
 }