$paths
$paths : array
View path.
View manager class.
The ViewManager
class is responsible for managing views and rendering templates.
$engines : array
Engines engine.
addEngine(string $extension, \Omega\View\Engine\EngineInterface $engine) : $this
Add a engine for a specific file extension.
string | $extension | Holds the file extension (e.g., 'php', 'html'). |
\Omega\View\Engine\EngineInterface | $engine | Holds an instance of the engine. |
render(string $template, array$data = []) : \Omega\View\View
Render a view template.
string | $template | Holds the template name (without extension). |
array |
$data | Holds an array of data to pass to the template. |
if the specified template does not exist.
Return an instance of the rendered view.
useMacro(string $name, mixed ...$values) : mixed
Use a defined macro.
string | $name | Holds the name of the macro to use. |
mixed | $values variadic | Holds an additional values or parameters to pass to the macro. |
if the specified macro is not defined.
Returns the result of executing the specified macro.