\Phug\Renderer\PartialRendererOptionsTrait

Trait RendererOptionsTrait: require ModuleContainerInterface to be implemented.

Summary

Methods
Properties
Constants
initCompiler()
No public properties found
No constants found
getDefaultOptions()
enableModule()
No protected properties found
N/A
enableModules()
handleOptionAliases()
synchronizeEvent()
createCompiler()
$optionEvents
N/A

Properties

$optionEvents

$optionEvents : array

Type

array

Methods

initCompiler()

initCompiler() 

Initialize/re-initialize the compiler. You should use it if you change initial options (for example: on_render or on_html events, or the compiler_class_name).

Throws

\Phug\RendererException

getDefaultOptions()

getDefaultOptions(  $options) 

Parameters

$options

enableModule()

enableModule(  $moduleClassName,   $className, \Phug\Util\ModuleContainerInterface  $container,   $optionName) 

Parameters

$moduleClassName
$className
\Phug\Util\ModuleContainerInterface $container
$optionName

enableModules()

enableModules() 

handleOptionAliases()

handleOptionAliases() 

synchronizeEvent()

synchronizeEvent(  $event,   $key) 

Parameters

$event
$key

createCompiler()

createCompiler(  $compilerClassName) 

Parameters

$compilerClassName