TemplateResponse

Information

TemplateResponse facilitates Emergence's template system by extending the original Dwoo class.

On the server you will need to make sure that the paths defined in $pathCompile and $pathCache exist and have write permissions.

Usage

Calling TemplateResponse::respond(string $templateName,array $data) will use the TemplateResponse class to evaluate a given template with the given data and render the output to the client.

Source Code