engelsystem/src/Renderer/EngineInterface.php

28 lines
511 B
PHP
Raw Normal View History

<?php
namespace Engelsystem\Renderer;
interface EngineInterface
{
/**
* Render a template
*
* @param string $path
* @param mixed[] $data
* @return string
*/
2018-12-03 23:39:50 +01:00
public function get(string $path, array $data = []): string;
/**
* @param string $path
* @return bool
*/
2018-12-03 23:39:50 +01:00
public function canRender(string $path): bool;
/**
* @param string|mixed[] $key
* @param mixed $value
*/
public function share($key, $value = null);
}