philo/laravel-blade
最新稳定版本:v3.1
Composer 安装命令:
composer require philo/laravel-blade
包简介
Use the simple and yet powerful Laravel Blade templating engine as a standalone component.
README 文档
README
Installation (Blade Laravel 5.1)
The package can be installed via Composer by requiring the "philo/laravel-blade": "3.*" package in your project's composer.json.
{
"require": {
"philo/laravel-blade": "3.*"
}
}
Installation (Blade Laravel 4)
The package can be installed via Composer by requiring the "philo/laravel-blade": "2.*" package in your project's composer.json.
{
"require": {
"philo/laravel-blade": "2.*"
}
}
Usage
<?php /* |-------------------------------------------------------------------------- | Register The Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader | for our application. We just need to utilize it! We'll require it | into the script here so that we do not have to worry about the | loading of any our classes "manually". Feels great to relax. | */ require 'vendor/autoload.php'; use Philo\Blade\Blade; $views = __DIR__ . '/views'; $cache = __DIR__ . '/cache'; $blade = new Blade($views, $cache); echo $blade->view()->make('hello')->render();
You can use all blade features as described in the Laravel 5.1 documentation: https://laravel.com/docs/5.1/blade
统计信息
- 总下载量: 666.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 387
- 点击次数: 1
- 依赖项目数: 82
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-12