\Charcoal\ViewEngineInterface

_Engines_ are the actual template renderers for the views.

Summary

Methods
Constants
loadTemplate()
render()
renderTemplate()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

loadTemplate()

loadTemplate(string  $templateIdent) : string

Load a template (from identifier).

Parameters

string $templateIdent

The template identifier to load.

Returns

string

render()

render(string  $templateIdent, mixed  $context) : string

Load a template (from identifier) and render it.

Parameters

string $templateIdent

The template identifier to load and render.

mixed $context

The rendering context.

Returns

string —

The rendered template string.

renderTemplate()

renderTemplate(string  $templateString, mixed  $context) : string

Render a template (from string).

Parameters

string $templateString

The template string to render.

mixed $context

The rendering context.

Returns

string —

The rendered template string.