|
@@ -23,7 +23,10 @@
|
|
|
if($this->fire('before', $data) === false){
|
|
|
throw new Exception("Render on template {$this->name} cancelled. Before.");
|
|
|
}
|
|
|
+ ob_start();
|
|
|
$output = \Closure::FromCallable($this->template)->call($data);
|
|
|
+ $output .= ob_get_contents();
|
|
|
+ ob_end_clean();
|
|
|
if($this->fire('after', $output) === false){
|
|
|
throw new Exception("Render on template {$this->name} cancelled. After");
|
|
|
}
|