Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.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