Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

(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.

param: string $name
return: string Mustache Template source