laravel/laravel — pull request #628 by daylerees (2012-05-04 17:47:49+00:00)
Title: Blade::register() custom blade compilers.

Allow the use of a closure to define a new blade compilation method.

// replace the word 'thing' with 'OTHERTHING'
Blade::register(function($view) {
return str_replace('thing', 'OTHERTHING', $view);
});

This could lead to some sexy bundles.

Cheers!