Lines Matching defs:template
215 * @param \Handlebars\Template $template template that is being rendered
218 * @param string $source part of template that is wrapped
223 public function helperIf($template, $context, $args, $source)
225 $tpl = $template->getEngine()->loadString('{{#if ' . $args . '}}' . $source . '{{/if}}');
237 $template->setStopToken($token);
238 $buffer = $template->render($context);
239 $template->setStopToken(false);
240 $template->discard();
246 $template->setStopToken($node['name']);
247 $template->discard();
248 $template->setStopToken(false);
260 $template->setStopToken($token);
261 $buffer = $template->render($context);
262 $template->setStopToken(false);
263 $template->discard();
268 return $this->renderElse($template, $context);
272 return $this->renderElse($template, $context);
288 * @param \Handlebars\Template $template template that is being rendered
291 * @param string $source part of template that is wrapped
296 public function helperEach($template, $context, $args, $source)
307 return $this->renderElse($template, $context);
316 $tpl = clone $template;
321 if ($template->getEngine()->isDataVariablesEnabled()) {
333 if ($template->getEngine()->isDataVariablesEnabled()) {
349 if ($template->getEngine()->isDataVariablesEnabled()) {
356 return $this->renderElse($template, $context);
363 * @param \Handlebars\Template $template
367 private function renderElse($template, $context)
369 $template->setStopToken('else');
370 $template->discard();
371 $template->setStopToken(false);
372 return $template->render($context);
383 * @param \Handlebars\Template $template template that is being rendered
386 * @param string $source part of template that is wrapped
391 public function helperUnless($template, $context, $args, $source)
395 $template->setStopToken('else');
396 $buffer = $template->render($context);
397 $template->setStopToken(false);
398 $template->discard();
401 return $this->renderElse($template, $context);
410 * @param \Handlebars\Template $template template that is being rendered
413 * @param string $source part of template that is wrapped
418 public function helperWith($template, $context, $args, $source)
422 $buffer = $template->render($context);
433 * @param \Handlebars\Template $template template that is being rendered
436 * @param string $source part of template that is wrapped
441 public function helperBindAttr($template, $context, $args, $source)
451 * @param \Handlebars\Template $template template that is being rendered
454 * @param string $source part of template that is wrapped
459 public function helperUpper($template, $context, $args, $source)
469 * @param \Handlebars\Template $template template that is being rendered
472 * @param string $source part of template that is wrapped
477 public function helperLower($template, $context, $args, $source)
487 * @param \Handlebars\Template $template template that is being rendered
490 * @param string $source part of template that is wrapped
495 public function helperCapitalize($template, $context, $args, $source)
505 * @param \Handlebars\Template $template template that is being rendered
508 * @param string $source part of template that is wrapped
513 public function helperCapitalizeWords($template, $context, $args, $source)
523 * @param \Handlebars\Template $template template that is being rendered
526 * @param string $source part of template that is wrapped
531 public function helperReverse($template, $context, $args, $source)
541 * @param \Handlebars\Template $template template that is being rendered
544 * @param string $source part of template that is wrapped
549 public function helperFormatDate($template, $context, $args, $source)
573 * @param \Handlebars\Template $template template that is being rendered
576 * @param string $source part of template that is wrapped
581 public function helperInflect($template, $context, $args, $source)
597 * @param \Handlebars\Template $template template that is being rendered
600 * @param string $source part of template that is wrapped
605 public function helperDefault($template, $context, $args, $source)
619 * @param \Handlebars\Template $template template that is being rendered
622 * @param string $source part of template that is wrapped
627 public function helperTruncate($template, $context, $args, $source)
645 * @param \Handlebars\Template $template template that is being rendered
648 * @param string $source part of template that is wrapped
653 public function helperRaw($template, $context, $args, $source)
666 * @param \Handlebars\Template $template template that is being rendered
669 * @param string $source part of template that is wrapped
674 public function helperRepeat($template, $context, $args, $source)
676 $buffer = $template->render($context);
695 * @param \Handlebars\Template $template template that is being rendered
698 * @param string $source part of template that is wrapped
703 public function helperDefine($template, $context, $args, $source)
705 $this->tpl["DEFINE"][$args] = clone($template);
722 * @param \Handlebars\Template $template template that is being rendered
725 * @param string $source part of template that is wrapped
730 public function helperInvoke($template, $context, $args, $source)