Show:

Q_Handlebars Class

This class lets you output render handlebars templates

Item Index

Methods

Methods

parseArgs

(
  • $template
  • $context
  • $args
)
Array static

Call this in your helpers to parse the args into a useful array

Parameters:

  • $template Handlebars_Template
  • $context Handlebars_Context
  • $args String | Array

Returns:

Array:

render

(
  • $template
  • [$data=array()]
)
String static

Render view using Handlebars rendering engine

Parameters:

  • $template String
  • [$data=array()] Mixed optional

Returns:

String:

Rendered template

render

(
  • $source
  • [$data=array()]
)
String static

Render source using Handlebars rendering engine

Parameters:

  • $source String
  • [$data=array()] Mixed optional

Returns:

String:

Rendered template