src/lib/Herrera/Template/Engine.php
public static function create($path)
    {
        $engine = new self();

        /** @var $locator Collection*/
        $locator = $engine->getLocator();

        $locator->add(new FileSystemLocator($path));

        return $engine;
    }
public static function create($path)
    {
        $engine = new self();

        /** @var $locator Collection*/
        $locator = $engine->getLocator();

        $locator->add(new FileSystemLocator($path));

        return $engine;
    }
Creates a new instance for the directory path(s).

@param array|string The directory path(s).

@return Engine The new instance.