1<?php
2/**
3 * Handlebars Template string Loader implementation.
4 *
5 * @category  Xamin
6 * @package   Handlebars
7 * @author    fzerorubigd <fzerorubigd@gmail.com>
8 * @author    Behrooz Shabani <everplays@gmail.com>
9 * @author    Mardix <https://github.com/mardix>
10 * @copyright 2012 (c) ParsPooyesh Co
11 * @copyright 2013 (c) Behrooz Shabani
12 * @copyright 2013 (c) Mardix
13 * @license   MIT
14 * @link      http://voodoophp.org/docs/handlebars
15 */
16
17namespace Handlebars\Loader;
18use Handlebars\Loader;
19use Handlebars\HandlebarsString;
20
21class StringLoader implements Loader
22{
23
24    /**
25     * Load a Template by source.
26     *
27     * @param string $name Handlebars Template source
28     *
29     * @return HandlebarsString Handlebars Template source
30     */
31    public function load($name)
32    {
33        return new HandlebarsString($name);
34    }
35
36}
37