Interface Engine
An interface for template engines.
Methods summary
public
render( string $template_pathname
, mixed $thisArg
, array $variables
, array $options
= [] )
: mixed
Renders a template.
Note: Template engines implementing this interface are expected to add
ICanBoogie\Render\Engine::VAR_TEMPLATE_PATHNAME
to the variables, so that the template being rendered can be
tracked easily.
Parameters
$template_pathname
- Pathname to the template to render.
$thisArg
- thisArg, if supported by the engine.
$variables
- Variable to render the template with.
$options
- Miscellaneous options.
Returns
mixed
Constants summary
VAR_TEMPLATE_PATHNAME
: string
The pathname of the template being rendered.
The pathname of the template being rendered.
'__TEMPLATE_PATHNAME__'