PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.25
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.25
1.10.25 1.10.24 1.10.23 1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 All 169 releases
woocommerce-pos / vendor / mustache / mustache / src / Loader / StringLoader.php

StringLoader.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.25, at vendor/mustache/mustache/src/Loader/StringLoader.php

44 lines 1004 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of Mustache.php.
5 *
6 * (c) 2010-2026 Justin Hileman
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Mustache\Loader;
13
14 use Mustache\Loader;
15
16 /**
17 * Mustache Template string Loader implementation.
18 *
19 * A StringLoader instance is essentially a noop. It simply passes the 'name' argument straight through:
20 *
21 * $loader = new StringLoader;
22 * $tpl = $loader->load('{{ foo }}'); // '{{ foo }}'
23 *
24 * This is the default Template Loader instance used by Mustache:
25 *
26 * $m = new \Mustache\Engine;
27 * $tpl = $m->loadTemplate('{{ foo }}');
28 * echo $tpl->render(['foo' => 'bar']); // "bar"
29 */
30 class StringLoader implements Loader
31 {
32 /**
33 * Load a Template by source.
34 *
35 * @param string $name Mustache Template source
36 *
37 * @return string Mustache Template source
38 */
39 public function load($name)
40 {
41 return $name;
42 }
43 }
44