2017 © Pedro Peláez
 

library blade

an independent version of laravel view template - blade

image

xiaoler/blade

an independent version of laravel view template - blade

  • Wednesday, August 23, 2017
  • by Scholer
  • Repository
  • 12 Watchers
  • 128 Stars
  • 3,188 Installations
  • PHP
  • 14 Dependents
  • 0 Suggesters
  • 38 Forks
  • 2 Open issues
  • 12 Versions
  • 9 % Grown

The README.md

Blade

【简体中文】, (*1)

This is a view templating engine which is extracted from Laravel. It's independent without relying on Laravel's Container or any others., (*2)

Installation

With Composer, you just need to run, (*3)

``` sh composer require xiaoler/blade, (*4)


If you haven't use composer, you should add all the files in folder `src` to your project folder, and then `require` them in your code. ### Usage ```php directive('datetime', function($timestamp) { return preg_replace('/(\(\d+\))/', '', $timestamp); }); $engine = new \Xiaoler\Blade\Engines\CompilerEngine($compiler); $finder = new \Xiaoler\Blade\FileViewFinder($path); // if your view file extension is not php or blade.php, use this to add it $finder->addExtension('tpl'); // get an instance of factory $factory = new \Xiaoler\Blade\Factory($engine, $finder); // render the template file and echo it echo $factory->make('hello', ['a' => 1, 'b' => 2])->render();

You can enjoy almost all the features of blade with this extension. However, remember that some of exclusive features are removed., (*5)

You can't:, (*6)

  • use @inject @can @cannot @lang in a template file
  • add any events or middleawares

Documentation: http://laravel.com/docs/5.3/blade, (*7)

Thanks for Laravel and it authors. That is a great project., (*8)

The Versions

23/08 2017

5.4.x-dev

5.4.9999999.9999999-dev http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu

23/08 2017

5.4.3

5.4.3.0 http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu

14/08 2017

5.4.2

5.4.2.0 http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu

03/08 2017

5.4.1

5.4.1.0 http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu

06/07 2017

5.4.0

5.4.0.0 http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu

18/12 2016

dev-master

9999999-dev http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu

18/09 2016

0.3.1

0.3.1.0 http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu

07/09 2016

0.3.0

0.3.0.0 http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu

24/10 2015

dev-develop

dev-develop http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu

24/10 2015

0.2.2

0.2.2.0 http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu

23/10 2015

0.2.1

0.2.1.0 http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu

22/10 2015

0.1.0

0.1.0.0 http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu