public function registerTemplateEngine($resolver)
    {
        $app = $this->app;

        // The Compiler engine requires an instance of the CompilerInterface, which in
        // this case will be the Template compiler, so we'll first create the compiler
        // instance to pass into the engine so it can compile the views properly.
        $app->bindShared('template.compiler', function($app)
        {
            $cachePath = $app['config']['view.compiled'];

            return new TemplateCompiler($app['files'], $cachePath);
        });

        $resolver->register('template', function() use ($app)
        {
            return new CompilerEngine($app['template.compiler'], $app['files']);
        });
    }
public function registerTemplateEngine($resolver)
    {
        $app = $this->app;

        // The Compiler engine requires an instance of the CompilerInterface, which in
        // this case will be the Template compiler, so we'll first create the compiler
        // instance to pass into the engine so it can compile the views properly.
        $app->bindShared('template.compiler', function($app)
        {
            $cachePath = $app['config']['view.compiled'];

            return new TemplateCompiler($app['files'], $cachePath);
        });

        $resolver->register('template', function() use ($app)
        {
            return new CompilerEngine($app['template.compiler'], $app['files']);
        });
    }
public function registerTemplateEngine ( $ resolver ) { $ app = $ this -> app ; // The Compiler engine requires an instance of the CompilerInterface, which in // this case will be the Template compiler, so we'll first create the compiler // instance to pass into the engine so it can compile the views properly. $ app -> bindShared ( 'template.compiler' , function ( $ app ) { $ cachePath = $ app [ 'config' ] [ 'view.compiled' ] ; return new TemplateCompiler ( $ app [ 'files' ] , $ cachePath ) ; } ) ; $ resolver -> register ( 'template' , function ( ) use ( $ app ) { return new CompilerEngine ( $ app [ 'template.compiler' ] , $ app [ 'files' ] ) ; } ) ; }
Register the Template engine implementation.

@param  \Nova\View\Engines\EngineResolver  $resolver
@return void
Register the Template engine implementation .