Vendor lock
This commit is contained in:
52
vendor/philo/laravel-blade/readme.md
vendored
Normal file
52
vendor/philo/laravel-blade/readme.md
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
### 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.
|
||||
|
||||
```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.
|
||||
|
||||
```json
|
||||
{
|
||||
"require": {
|
||||
"philo/laravel-blade": "2.*"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
```php
|
||||
<?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 documentation:
|
||||
http://laravel.com/docs/templates#blade-templating
|
Reference in New Issue
Block a user