Q_Handlebars_Loader Class
Q_Handlebars filesystem Loader constructor.
Passing an $options array allows overriding certain Loader options during instantiation:
$options = array(
// The filename extension used for Handlebars templates. Defaults to '.handlebars'
'extension' => '.ms',
);
Constructor
Q_Handlebars_Loader
(
private
-
[$xpath='']
-
[$options=array()]
Parameters:
-
[$xpath='']
String optionalExtra path to add to standard view path (for partials)
-
[$options=array()]
Array optionalArray of Loader options
Methods
load
(
String
-
$name
Load a Template by name.
Parameters:
-
$name
String
Returns:
String:
Handlebars Template source
loadFile
(
String
protected
-
$name
Helper function for loading a Handlebars file by name.
Parameters:
-
$name
String
Returns:
String:
Handlebars Template source