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