class SimpleTemplateRenderer (View source)

Methods

string
render(string $templatePathAndFilename, array $contextVariables)

Renders simple templates by replacing {key} variables in the template, by the value of the key in the contextVariables array

Details

string render(string $templatePathAndFilename, array $contextVariables)

Renders simple templates by replacing {key} variables in the template, by the value of the key in the contextVariables array

Parameters

string $templatePathAndFilename
array $contextVariables

Return Value

string