You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
511 B
PHP
28 lines
511 B
PHP
<?php
|
|
|
|
namespace Engelsystem\Renderer;
|
|
|
|
interface EngineInterface
|
|
{
|
|
/**
|
|
* Render a template
|
|
*
|
|
* @param string $path
|
|
* @param mixed[] $data
|
|
* @return string
|
|
*/
|
|
public function get(string $path, array $data = []): string;
|
|
|
|
/**
|
|
* @param string $path
|
|
* @return bool
|
|
*/
|
|
public function canRender(string $path): bool;
|
|
|
|
/**
|
|
* @param string|mixed[] $key
|
|
* @param mixed $value
|
|
*/
|
|
public function share($key, $value = null);
|
|
}
|