public function registerPugCompiler($subExtension = '')
    {
        // Add resolver
        $this->getEngineResolver()->register('pug' . $subExtension, function () use ($subExtension) {
            return new CompilerEngine($this->app['Bkwld\LaravelPug\Pug' . ucfirst(ltrim($subExtension, '.')) . 'Compiler']);
        });

        // Add extensions
        $this->app['view']->addExtension('pug' . $subExtension, 'pug' . $subExtension);
        $this->app['view']->addExtension('pug' . $subExtension . '.php', 'pug' . $subExtension);
        $this->app['view']->addExtension('jade' . $subExtension, 'pug' . $subExtension);
        $this->app['view']->addExtension('jade' . $subExtension . '.php', 'pug' . $subExtension);
    }