Метод |
Описание |
|
__construct ( array $options = [] ) |
Merge local options with constructor $options. |
|
compile ( string $input, string $filename = null ) : string |
Compile PHP code from a Pug input or a Pug file. |
|
render ( $input, $filename = null, array $vars = [] ) : string |
Compile HTML code from a Pug input or a Pug file. |
|
requirements ( $name = null ) : array | boolean |
Returns list of requirements in an array identified by keys. |
|
resetSharedVariables ( ) |
Remove all previously set shared variables. |
|
share ( $variables, mixed $value = null ) |
Add a variable or an array of variables to be shared with all templates that will be rendered
by the instance of Pug. |
|
stream ( $input ) : string |
Create a stream wrapper to allow
the possibility to add $scope variables. |
|