TwigEngine
class
Core\View\Engine\TwigEngine implements EngineInterface
Class TwigEngine.
Methods
__construct(string $views_root, string $partials_root = null)
Constructor.
registerHelper(string $name, callable $callable)
Register a helper function with the engine.
string
getTemplateFilename(string $name)
Get the template filename.
string
render(string $filename, array $data)
Render the template with filename and return the output.