PluginProbe
GetResponse Forms by Optin Cat / 1.5.6
GetResponse Forms by Optin Cat v1.5.6
1.3.4 1.3.5 1.3.6 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 1.8.0 1.8.1 2.0.0 All 36 releases
getresponse / includes / classes / Mustache / Loader / StringLoader.php

StringLoader.php in GetResponse Forms by Optin Cat 1.5.6, at includes/classes/Mustache/Loader/StringLoader.php

40 lines 1015 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-2014 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 /**
13 * Mustache Template string Loader implementation.
14 *
15 * A StringLoader instance is essentially a noop. It simply passes the 'name' argument straight through:
16 *
17 * $loader = new StringLoader;
18 * $tpl = $loader->load('{{ foo }}'); // '{{ foo }}'
19 *
20 * This is the default Template Loader instance used by Mustache:
21 *
22 * $m = new Mustache;
23 * $tpl = $m->loadTemplate('{{ foo }}');
24 * echo $tpl->render(array('foo' => 'bar')); // "bar"
25 */
26 class Mustache_Loader_StringLoader implements Mustache_Loader
27 {
28 /**
29 * Load a Template by source.
30 *
31 * @param string $name Mustache Template source
32 *
33 * @return string Mustache Template source
34 */
35 public function load($name)
36 {
37 return $name;
38 }
39 }
40