1: <?php
2:
3: namespace Charcoal\View;
4:
5: /**
6: * _Engines_ are the actual template renderers for the views.
7: *
8: */
9: interface EngineInterface
10: {
11: /**
12: * Load a template (from identifier).
13: *
14: * @param string $templateIdent The template identifier to load.
15: * @return string
16: */
17: public function loadTemplate($templateIdent);
18:
19: /**
20: * Load a template (from identifier) and render it.
21: *
22: * @param string $templateIdent The template identifier to load and render.
23: * @param mixed $context The rendering context.
24: * @return string The rendered template string.
25: */
26: public function render($templateIdent, $context);
27:
28: /**
29: * Render a template (from string).
30: *
31: * @param string $templateString The template string to render.
32: * @param mixed $context The rendering context.
33: * @return string The rendered template string.
34: */
35: public function renderTemplate($templateString, $context);
36: }
37: