Commit a976c555 authored by Taylor Otwell's avatar Taylor Otwell

Added "view.filter" event so we can hook in final filters.

parent 14c6ff16
......@@ -367,7 +367,17 @@ class View implements ArrayAccess {
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;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment