Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

File Size: 69 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Mustache_Loader_CascadingLoader:: (3 methods):
  __construct()
  addLoader()
  load()


Class: Mustache_Loader_CascadingLoader  - X-Ref

A Mustache Template cascading loader implementation, which delegates to other
Loader instances.

__construct(array $loaders = array()   X-Ref
Construct a CascadingLoader with an array of loaders.

$loader = new Mustache_Loader_CascadingLoader(array(
new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__),
new Mustache_Loader_FilesystemLoader(__DIR__.'/templates')
));

param: Mustache_Loader[] $loaders

addLoader(Mustache_Loader $loader)   X-Ref
Add a Loader instance.

param: Mustache_Loader $loader

load($name)   X-Ref
Load a Template by name.

return: string Mustache Template source
param: string $name