Method | Description | |
---|---|---|
__construct ( $base_dir = NULL, $options = [] ) | ||
load ( $name ) | ||
setTemplate ( string $name, string $template ) | Set a Template source by name. | |
setTemplates ( array $templates ) | Set an associative array of Template sources for this loader. |
Method | Description | |
---|---|---|
_load_file ( $name ) |
public setTemplate ( string $name, string $template ) | ||
$name | string | |
$template | string | Mustache Template source |
public setTemplates ( array $templates ) | ||
$templates | array |