- Added a Picea's reference into templates. This allows extensions to call themselves after compilation.
This commit is contained in:
1 parent
423d74aa6c
commit
a56b64cf49
3 files changed
+79
-28
No files matched your search
@@ -22,11 +22,11 @@ class %CLASSNAME% %EXTENDS% {
|
||||
|
||||
public function output(array $variablesList = []) : void
|
||||
{
|
||||
( function($___class__template, $___global_variables, $___variables) {
|
||||
extract($___global_variables);
|
||||
extract($___variables, \EXTR_OVERWRITE);
|
||||
( function($___class__template, $___global_variables, $___variables, $___picea) {
|
||||
extract($___global_variables); unset($___global_variables);
|
||||
extract($___variables, \EXTR_OVERWRITE); unset($___variables);
|
||||
?>%CONTENT%<?php
|
||||
} )->call($this->thisProxy ?? new class(){}, $this, $this->variableList, $variablesList);
|
||||
} )->call($this->thisProxy ?? new class(){}, $this, $this->variableList, $variablesList, $this->picea);
|
||||
%PARENT_OUTPUT%
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user