| 1 | <?php |
||
| 12 | class SmartyEngine extends Smarty implements TemplateEngine |
||
| 13 | { |
||
| 14 | public function __construct($templateDir = './src', $cacheDir = './.cache') { |
||
| 23 | |||
| 24 | public function renderTemplate(SplFileInfo $template) { |
||
| 27 | |||
| 28 | public function addTemplateVariables(array $variables) { |
||
| 35 | |||
| 36 | public function clearTemplateVariables() { |
||
| 41 | |||
| 42 | public function addTemplateVariable($name, $value) { |
||
| 47 | |||
| 48 | public function hasTemplateVariable(string $name) : bool { |
||
| 51 | |||
| 52 | public function clearTemplateVariable($variable) { |
||
| 57 | |||
| 58 | public function getTemplateExtensions(): array { |
||
| 61 | } |
||
| 62 |