2017 © Pedro Peláez
 

library blade

image

feather2/blade

  • Wednesday, November 23, 2016
  • by jsyczhanghao
  • Repository
  • 1 Watchers
  • 0 Stars
  • 123 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 17 % Grown

The README.md

feather2-blade

此包为lothar环境运行时必要文件,支持blade及laravel版本为5.0+,同时更好的支持了插件机制、任意后缀及自定义标签, (*1)

项目使用

laravel

安装, (*2)

composer require feather2/blade

项目config/view.php配置, (*3)

<?php
return [
    'paths' => [],
    'compiled' => '缓存存放路径'
];

项目providers配置 config/app.php, (*4)

<?php
return [
    'providers' => [
        //some some some provider
        'Feather2\Blade\ResourceProvider'
    ]
];

blade独立包,传送

安装, (*5)

composer require jenssegers/blade
composer require feather2/blade

使用, (*6)

 $blade->viewPaths,
    'compiled' => $blade->cachePath
];
$container['config'] = $config;

(new BladeProvider\ResourceProvider($container))->register();
echo $blade->make($path, array(/*页面数据*/))->render();
```

## 插件开发及使用

直接在view目录下建立一个\_plugins\_目录即可
```
└── view
    └── _plugins_
        └── datetime.php
```

插件的名字即为文件名

view/\_plugins\_/datetime.php
```php
function blade_plugin_datetime(){
    return '';
}

view/main.lala, (*7)

现在时间: <div id="datetime">@datetime()</div>

The Versions

23/11 2016

dev-master

9999999-dev

  Sources   Download

The Requires

 

by zhanghao

23/11 2016

v1.0.6

1.0.6.0

  Sources   Download

The Requires

 

by zhanghao

15/11 2016

v1.0.5

1.0.5.0

  Sources   Download

The Requires

 

by zhanghao

18/10 2016

v1.0.4

1.0.4.0

  Sources   Download

The Requires

 

by zhanghao

19/09 2016

v1.0.3

1.0.3.0

  Sources   Download

The Requires

 

by zhanghao

06/09 2016

v1.0.2

1.0.2.0

  Sources   Download

The Requires

 

by zhanghao

05/09 2016

v1.0.1

1.0.1.0

  Sources   Download

The Requires

 

by zhanghao

05/09 2016

v1.0.0

1.0.0.0

  Sources   Download

The Requires

 

by zhanghao