[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 124 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Mustache_Loader_FilesystemLoader:: (4 methods):
__construct()
load()
loadFile()
getFileName()
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 |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |