Closed weotch closed 10 years ago
Check out laravel/framework/src/Illuminate/View/Environment.php, there are some events that get fired when a view is made. Specifically, I think the 'creating' event is what we want. It allows logic to be fired before the view is rendered. I'm thinking that maybe an event listener could listen to all such events (if running locally), check for a HAML view, and compile it, before continuing.
It can be a nuisance to add the compile line in each controller.