示例#1
0
/**
 * @param JigBase $template
 * @return HtmlBody
 * @throws Exception
 * @throws \Jig\JigException
 */
function createHtmlBody(\Jig\JigBase $template)
{
    $text = $template->render();
    return new HtmlBody($text);
}
示例#2
0
文件: bootstrap.php 项目: PeeHaa/Jig
function createTemplateResponse(JigBase $template)
{
    $text = $template->render();
    return new JigDemo\Response\TextResponse($text);
}
示例#3
0
文件: Tier.php 项目: atawsports2/Tier
 /**
  * @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();
 }