diff --git a/src/Compiler/Context.php b/src/Compiler/Context.php index 718d5ec..51c6170 100644 --- a/src/Compiler/Context.php +++ b/src/Compiler/Context.php @@ -24,10 +24,12 @@ abstract class Context { public array $switchStack = []; - public array $iterateStack = []; + public array $iterationStack = []; public array $useStack = []; + public array $sections = []; + public int $functions = 0; public array $functionStack = []; diff --git a/src/Picea.php b/src/Picea.php index 5879360..3035e50 100644 --- a/src/Picea.php +++ b/src/Picea.php @@ -71,12 +71,12 @@ class Picea implements LanguageRegistration return call_user_func($object); } catch(\Throwable $ex) { - if (! $ex instanceof Exception\RenderHtmlException ) { - throw new Exception\RenderHtmlException($object, $this, "An error occurred trying to render HTML view `$viewPath` : " . $ex->getMessage(), 911, $ex); - } - else { + # if (! $ex instanceof Exception\RenderHtmlException ) { + # throw new Exception\RenderHtmlException($object, $this, "An error occurred trying to render HTML view `$viewPath` : " . $ex->getMessage(), 911, $ex); + # } + #else { throw $ex; - } + # } } exit();