2017 © Pedro PelĆ”ez
 

library blade

an independent version of laravel view template - blade

image

terranc/blade

an independent version of laravel view template - blade

  • Saturday, February 4, 2017
  • by terranc
  • Repository
  • 1 Watchers
  • 2 Stars
  • 519 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 37 Forks
  • 0 Open issues
  • 3 Versions
  • 24 % Grown

The README.md

Blade

Use Laravel Blade templates without the full Laravel framework.(component & slot support), (*1)

Installation

``` sh composer require terranc/blade, (*2)


### Usage ```php directive('datetime', function($timestamp) { return preg_replace('/(\(\d+\))/', '', $timestamp); }); $engine = new \terranc\Blade\Engines\CompilerEngine($compiler); $finder = new \terranc\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 \terranc\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., (*3)

You can't:, (*4)

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

Documentation: http://laravel.com/docs/5.4/blade, (*5)

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

For ThinkPHP

https://github.com/terranc/think-blade, (*7)

Reference

XiaoLer/blade, (*8)

The Versions

04/02 2017

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 Avatar terranc

04/02 2017

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 Avatar terranc

04/02 2017

dev-merge

dev-merge http://0x1.im

an independent version of laravel view template - blade

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Scholer Liu