diff --git a/src/AST/Handler.php b/src/AST/Handler.php new file mode 100644 index 0000000..034e1dd --- /dev/null +++ b/src/AST/Handler.php @@ -0,0 +1,32 @@ +closure = $closure; + } + + /** + * @param State $State + * @return T&Renderable + */ + public function renderable(State $State) + { + return ($this->closure)($State); + } +}