|
| __construct (array $templates=array()) |
| ArrayLoader constructor.
|
|
| load ($name) |
| Load a Template.
|
|
| setTemplate ($name, $template) |
| Set a Template source by name.
|
|
| setTemplates (array $templates) |
| Set an associative array of Template sources for this loader.
|
|
◆ __construct()
Mustache_Loader_ArrayLoader::__construct |
( |
array | $templates = array() | ) |
|
ArrayLoader constructor.
- Parameters
-
array | $templates | Associative array of Template source (default: array()) |
◆ load()
Mustache_Loader_ArrayLoader::load |
( |
| $name | ) |
|
Load a Template.
- Exceptions
-
- Parameters
-
- Return values
-
string | Mustache Template source |
Implements Mustache_Loader.
◆ setTemplate()
Mustache_Loader_ArrayLoader::setTemplate |
( |
| $name, |
|
|
| $template ) |
◆ setTemplates()
Mustache_Loader_ArrayLoader::setTemplates |
( |
array | $templates | ) |
|
The documentation for this class was generated from the following file:
- lib/mustache/src/Mustache/Loader/ArrayLoader.php