# Class Opencart\System\Library\Template\Twig

Class Twig

Located at system\library\template\twig.php

Methods
`public` | `__construct()` Constructor Constructor | #
`public` | `addPath(string $namespace, string $directory = ''): void` addPath addPath | #
`public` | `render(string $filename, array<string, mixed> $data = [], string $code = ''): string` Render Render | #

Properties
`protected` | `string` | `$root` | #
`protected` | `FilesystemLoader` | `$loader` | #
`protected` | `string` | `$directory` | #
`protected` | `array<string, string>` | `$path = []` | #

OpenCart API API documentation generated by ApiGen dev-master