See Release Notes
Long Term Support Release
(no description)
File Size: | 123 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Mustache_Loader_InlineLoader:: (3 methods):
__construct()
load()
loadTemplates()
Class: Mustache_Loader_InlineLoader - X-Ref
A Mustache Template loader for inline templates.__construct($fileName, $offset) X-Ref |
The InlineLoader requires a filename and offset to process templates. The magic constants `__FILE__` and `__COMPILER_HALT_OFFSET__` are usually perfectly suited to the job: $loader = new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__); Note that this only works if the loader is instantiated inside the same file as the inline templates. If the templates are located in another file, it would be necessary to manually specify the filename and offset. param: string $fileName The file to parse for inline templates param: int $offset A string offset for the start of the templates. |
load($name) X-Ref |
Load a Template by name. param: string $name return: string Mustache Template source |
loadTemplates() X-Ref |
Parse and load templates from the end of a source file. |