protected function extendBlade() {
        $blade = $this->app['view']->getEngineResolver()->resolve('blade')->getCompiler();

        $blade->extend(function($value) use ($blade)
        {
            return $this->compileBlade($value, $blade);
        });
    }