Added "view.filter" event so we can hook in final filters.
This commit is contained in:
parent
14c6ff1692
commit
a976c555e6
|
@ -367,7 +367,17 @@ public function get()
|
|||
ob_get_clean(); throw $e;
|
||||
}
|
||||
|
||||
return ob_get_clean();
|
||||
$content = ob_get_clean();
|
||||
|
||||
// The view filter event gives us a last chance to modify the
|
||||
// evaluated contents of the view and return them. This lets
|
||||
// us do something like run the contents through Jade, etc.
|
||||
if (Event::listeners('view.filter'))
|
||||
{
|
||||
return Event::first('view.filter', $content);
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue