Ejemplo n.º 1
0
/**
 * @param JigBase $template
 * @return HtmlBody
 * @throws Exception
 * @throws \Jig\JigException
 */
function createHtmlBody(\Jig\JigBase $template)
{
    $text = $template->render();
    return new HtmlBody($text);
}
Ejemplo n.º 2
0
function createTemplateResponse(JigBase $template)
{
    $text = $template->render();
    return new JigDemo\Response\TextResponse($text);
}
Ejemplo n.º 3
0
 /**
  * @param JigBase $template
  * @return HtmlBody
  * @throws \Exception
  * @throws \Jig\JigException
  */
 public static function createHtmlBody(JigBase $template)
 {
     $text = $template->render();
     return new HtmlBody($text);
 }
Ejemplo n.º 4
0
 function __construct(JigBase $jigBase)
 {
     $this->text = $jigBase->render();
 }