$adapter
$adapter : \Phug\Renderer\AdapterInterface
Trait AdapterTrait: require ModuleContainerInterface to be implemented.
$adapter : \Phug\Renderer\AdapterInterface
getAdapter() : \Phug\Renderer\AdapterInterface
Get the current adapter used (file, stream, eval or custom adapter provided).
getNewSandBox(callable  $action) : \Phug\Util\SandBox
                Return a sandbox with renderer settings for a given callable action.
| callable | $action | 
callAdapter(string $method, string $path, string $input, callable $getSource, array $parameters) : boolean|string|null
Call a method on the adapter (render, renderFile, display, displayFile, more methods can be available depending on the adapter user).
| string | $method | |
| string | $path | |
| string | $input | |
| callable | $getSource | |
| array | $parameters | 
getSandboxCall(string $source, string $method, string $path, string $input, callable $getSource, array $parameters) : \Phug\Util\SandBox
Call an adapter method inside a sandbox and return the SandBox result.
| string | $source | |
| string | $method | |
| string | $path | |
| string | $input | |
| callable | $getSource | |
| array | $parameters | 
handleHtmlEvent(\Phug\Renderer\Event\HtmlEvent $htmlEvent, array $parameters, $path, callable $getSource) : mixed
Handle an html event and accordingly to it, display, returns or throw the result/error.
| \Phug\Renderer\Event\HtmlEvent | $htmlEvent | |
| array | $parameters | |
| $path | ||
| callable | $getSource |