Perform some custom name mapping for template file names.
More...
|
| __construct () |
| Provide a default no-args constructor (we don't really need anything).
|
|
| load ($name) |
| Load a Template by name.
|
|
|
| getFileName ($name) |
| Helper function for getting a Mustache template file name.
|
|
| loadFile ($name) |
| Helper function for loading a Mustache file by name.
|
|
| shouldCheckPath () |
| Only check if baseDir is a directory and requested templates are files if baseDir is using the filesystem stream wrapper.
|
|
Perform some custom name mapping for template file names.
- Copyright
- 2015 Damyon Wiese
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- Since
- 2.9
◆ getFileName()
core\output\mustache_filesystem_loader::getFileName |
( |
| $name | ) |
|
|
protected |
Helper function for getting a Mustache template file name.
Uses the leading component to restrict us specific directories.
- Parameters
-
- Return values
-
Reimplemented from Mustache_Loader_FilesystemLoader.
◆ load()
core\output\mustache_filesystem_loader::load |
( |
| $name | ) |
|
Load a Template by name.
- Parameters
-
string | $name | the template name |
- Return values
-
string | Mustache Template source |
Reimplemented from Mustache_Loader_FilesystemLoader.
◆ loadFile()
Mustache_Loader_FilesystemLoader::loadFile |
( |
| $name | ) |
|
|
protectedinherited |
◆ shouldCheckPath()
core\output\mustache_filesystem_loader::shouldCheckPath |
( |
| ) |
|
|
protected |
Only check if baseDir is a directory and requested templates are files if baseDir is using the filesystem stream wrapper.
Always check path for mustache_filesystem_loader.
- Return values
-
bool | Whether to check is_dir and file_exists |
Reimplemented from Mustache_Loader_FilesystemLoader.
The documentation for this class was generated from the following file:
- lib/classes/output/mustache_filesystem_loader.php