$modules
$modules : \Phug\Util\Partial\array<ModuleInterface>
$format : \Phug\Formatter\FormatInterface|string
$dependencies : \Phug\DependencyInjection
$mixins : \Phug\DependencyInjection
hasModule(string|\Phug\Util\ModuleInterface $module) : boolean
| string|\Phug\Util\ModuleInterface | $module |
getModule(string|\Phug\Util\ModuleInterface $module) : \Phug\Util\ModuleInterface
| string|\Phug\Util\ModuleInterface | $module |
addModule(string|\Phug\Util\ModuleInterface $module) : $this
| string|\Phug\Util\ModuleInterface | $module |
removeModule(string|\Phug\Util\ModuleInterface $module) : $this
| string|\Phug\Util\ModuleInterface | $module |
storeDebugNode(\Phug\Parser\NodeInterface $node) : integer
Store a node in a debug list and return the allocated index for it.
| \Phug\Parser\NodeInterface | $node |
getNodeFromDebugId(integer $nodeId) : \Phug\Parser\NodeInterface
| integer | $nodeId |
getDebugError(\Throwable $error, string $code, string $path = null) : \Phug\Util\Exception\LocatedException|\Throwable
Return a formatted error linked to pug source.
| \Throwable | $error | |
| string | $code | |
| string | $path |
setFormatHandler(string $doctype, \Phug\Formatter\FormatInterface|string $format) : $this
Set the format handler for a given doctype identifier.
| string | $doctype | doctype identifier |
| \Phug\Formatter\FormatInterface|string | $format | format handler |
getFormat() : \Phug\Formatter\FormatInterface|string
Return current format.
getFormatInstance( $format = null) : \Phug\Formatter\FormatInterface
Return current format as instance of FormatInterface.
| $format |
formatCode(string $code, boolean $checked = false, boolean $noTransformation = false) : string
Format a code with transform_expression and tokens handlers.
| string | $code | input code |
| boolean | $checked | rather the expression is checked for escaping or not |
| boolean | $noTransformation | disable transform_expression |
formatBoolean(string $code, boolean $checked = false, boolean $noTransformation = false) : string
Return an expression to be casted as boolean according to expression_in_bool pattern.
| string | $code | input code |
| boolean | $checked | rather the expression is checked for escaping or not |
| boolean | $noTransformation | disable transform_expression |
formatAttributesList(array $attributes) : \Phug\Formatter\Element\ExpressionElement
| array | $attributes |
getMixins() : \Phug\DependencyInjection
getDependencies() : \Phug\DependencyInjection
format(\Phug\Formatter\ElementInterface $element, \Phug\Formatter\FormatInterface|null $format = null) : string
Entry point of the Formatter, typically waiting for a DocumentElement and a format, to return a string with HTML and PHP nested.
| \Phug\Formatter\ElementInterface | $element | |
| \Phug\Formatter\FormatInterface|null | $format |