Interface for a class that renders templates for string and PSR-7 response objects.
You can download this library using Composer:
Require php: >=7.2
composer require akawalko/template-renderer-interface
Get template variable. Return mixed value.
Set template variable.
Determine if a variable is declared and is different than null.
Unset a given variable
Get template variable. Return mixed value.
Set template variable.
Get template variables.
Set template variables from assoc. array or object.
Render the template to string with given data.
Render the template to PSR compliant Response class with given data.
A shortcut method that executes renderToString() or renderToResponse() based on the arguments passed. Return ResponseInterface or string.