Q_Mustache_Loader Class
Q_Mustache filesystem Loader constructor.
Passing an $options array allows overriding certain Loader options during instantiation:
$options = array(
// The filename extension used for Mustache templates. Defaults to '.mustache'
'extension' => '.ms',
);
Constructor
Q_Mustache_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:
Mustache Template source
loadFile
(
String
protected
-
$name
Helper function for loading a Mustache file by name.
Parameters:
-
$name
String
Returns:
String:
Mustache Template source