File ManagerCurrent Directory: wp-content/plugins/profile-builder/assets/lib/Mustache/LoaderLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: CascadingLoader.php <?php /* * This file is part of Mustache.php. * * (c) 2010-2017 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * A Mustache Template cascading loader implementation, which delegates to other * Loader instances. */ class Mustache_Loader_CascadingLoader implements Mustache_Loader { private $loaders; /** * 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 */ public function __construct(array $loaders = array()) { $this->loaders = array(); foreach ($loaders as $loader) { $this->addLoader($loader); } } /** * Add a Loader instance. * * @param Mustache_Loader $loader */ public function addLoader(Mustache_Loader $loader) { $this->loaders[] = $loader; } /** * Load a Template by name. * * @throws Mustache_Exception_UnknownTemplateException If a template file is not found * * @param string $name * * @return string Mustache Template source */ public function load($name) { foreach ($this->loaders as $loader) { try { return $loader->load($name); } catch (Mustache_Exception_UnknownTemplateException $e) { // do nothing, check the next loader. } } throw new Mustache_Exception_UnknownTemplateException($name); } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirArrayLoader.phpFile1.97 KB Rename | Delete | EditCascadingLoader.phpFile1.74 KB Rename | Delete | EditFilesystemLoader.phpFile4.21 KB Rename | Delete | EditInlineLoader.phpFile3.73 KB Rename | Delete | EditMutableLoader.phpFile688.00 B Rename | Delete | EditProductionFilesystemLoader.phpFile2.85 KB Rename | Delete | EditStringLoader.phpFile976.00 B Rename | Delete | Edit