Method |
Description |
|
assign ( string $var, mixed $value ) : void |
Assign a variable and its value into the template engine. |
|
fetch ( string $template, array $parameters = [] ) : string |
Fetch the template from the given location, parse it and return the output. |
|
registerPlugin ( Plugin $plugin ) : void |
Register a plugin for the template engine. |
|
render ( string $template, array $parameters = [] ) : void |
Fetch the template from the given location, parse it and output the result to the browser. |
|
setTemplateDir ( string $path ) : void |
Root dir where the templates are stored. |
|