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

        $resolver->register('tpl', function() use ($app)
        {
            $cache = $app['path.storage'].'/views';

            // The Compiler engine requires an instance of the CompilerInterface, which in
            // this case will be the Blade compiler, so we'll first create the compiler
            // instance to pass into the engine so it can compile the views properly.
            $compiler = new TplCompiler($app['files'], $cache);


            return new CompilerEngine($compiler, $app['files']);
        });
    }
public function registerTplEngine($resolver)
    {
        $app = $this->app;

        $resolver->register('tpl', function() use ($app)
        {
            $cache = $app['path.storage'].'/views';

            // The Compiler engine requires an instance of the CompilerInterface, which in
            // this case will be the Blade compiler, so we'll first create the compiler
            // instance to pass into the engine so it can compile the views properly.
            $compiler = new TplCompiler($app['files'], $cache);


            return new CompilerEngine($compiler, $app['files']);
        });
    }
public function registerTplEngine ( $ resolver ) { $ app = $ this -> app ; $ resolver -> register ( 'tpl' , function ( ) use ( $ app ) { $ cache = $ app [ 'path.storage' ] . '/views' ; // The Compiler engine requires an instance of the CompilerInterface, which in // this case will be the Blade compiler, so we'll first create the compiler // instance to pass into the engine so it can compile the views properly. $ compiler = new TplCompiler ( $ app [ 'files' ] , $ cache ) ; return new CompilerEngine ( $ compiler , $ app [ 'files' ] ) ; } ) ; }
Register the Tpl engine implementation.

@param  \Illuminate\View\Engines\EngineResolver  $resolver
@return void
Register the Tpl engine implementation .