Show:

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

(
  • [$xpath='']
  • [$options=array()]
)
private

Parameters:

  • [$xpath=''] String optional

    Extra path to add to standard view path (for partials)

  • [$options=array()] Array optional

    Array of Loader options

Item Index

Methods

Methods

load

(
  • $name
)
String

Load a Template by name.

Parameters:

  • $name String

Returns:

String:

Mustache Template source

loadFile

(
  • $name
)
String protected

Helper function for loading a Mustache file by name.

Parameters:

  • $name String

Returns:

String:

Mustache Template source