See Release Notes
Long Term Support Release
(no description)
File Size: | 135 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Mustache_Loader_FilesystemLoader:: (5 methods):
__construct()
load()
loadFile()
getFileName()
shouldCheckPath()
Class: Mustache_Loader_FilesystemLoader - X-Ref
Mustache Template filesystem Loader implementation.__construct($baseDir, array $options = array() X-Ref |
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', ); param: string $baseDir Base directory containing Mustache template files param: array $options Array of Loader options (default: array()) |
load($name) X-Ref |
Load a Template by name. $loader = new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/views'); $loader->load('admin/dashboard'); // loads "./views/admin/dashboard.mustache"; param: string $name return: string Mustache Template source |
loadFile($name) X-Ref |
Helper function for loading a Mustache file by name. param: string $name return: string Mustache Template source |
getFileName($name) X-Ref |
Helper function for getting a Mustache template file name. param: string $name return: string Template file name |
shouldCheckPath() X-Ref |
Only check if baseDir is a directory and requested templates are files if baseDir is using the filesystem stream wrapper. return: bool Whether to check `is_dir` and `file_exists` |