◆ __construct()
Mustache_Loader_CascadingLoader::__construct |
( |
array | $loaders = array() | ) |
|
Construct a CascadingLoader with an array of loaders.
$loader = new Mustache_Loader_CascadingLoader(array(
new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__),
new Mustache_Loader_FilesystemLoader(__DIR__.'/templates')
));
- Parameters
-
◆ addLoader()
Add a Loader instance.
- Parameters
-
◆ load()
Mustache_Loader_CascadingLoader::load |
( |
| $name | ) |
|
Load a Template by name.
- Exceptions
-
- Parameters
-
- Return values
-
string | Mustache Template source |
Implements Mustache_Loader.
The documentation for this class was generated from the following file:
- lib/mustache/src/Mustache/Loader/CascadingLoader.php