- Modernized code a bit and added variables to blocks

This commit is contained in:
mcndave committed 2026-07-01 12:57:01 -04:00
1 parent 722131d801
commit 778f84116b
12 files changed
+146 -52

No files matched your search

-30
View File
@@ -6,36 +6,6 @@ use Picea\Compiler;
abstract class Context {
public string $namespace = "";
public string $extendFrom = "";
public string $className = "";
public string $compiledSource = "";
public ? string $sectionAction = null;
public string $viewPath = "";
public string $filePath = "";
public string $classPath = "";
public array $switchStack = [];
public array $iterationStack = [];
public array $useStack = [];
public array $sections = [];
public int $functions = 0;
public array $functionStack = [];
public array $hooks = [];
public Compiler $compiler;
public function hook(string $path, Callable $callback) : self