Example #1
0
/**
 * @param JigBase $template
 * @return HtmlBody
 * @throws Exception
 * @throws \Jig\JigException
 */
function createHtmlBody(\Jig\JigBase $template)
{
    $text = $template->render();
    return new HtmlBody($text);
}
Example #2
0
function createTemplateResponse(JigBase $template)
{
    $text = $template->render();
    return new JigDemo\Response\TextResponse($text);
}
Example #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);
 }
 function __construct(JigBase $jigBase)
 {
     $this->text = $jigBase->render();
 }