LaravelPackages.net
Acme Inc.
Toggle sidebar
tahaghafuri/blade

Use the simple and yet powerful Laravel Blade templating engine as a standalone component.

0
0
5.0.0
About tahaghafuri/blade

tahaghafuri/blade is a Laravel package for use the simple and yet powerful laravel blade templating engine as a standalone component.. It currently has 0 GitHub stars and 0 downloads on Packagist (latest version 5.0.0). Install it with composer require tahaghafuri/blade. Discover more Laravel packages by tahaghafuri or browse all Laravel packages to compare alternatives.

Last updated

Installation

composer require tahaghafuri/blade

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 __DIR__.'/vendor/autoload.php';

use TAG\Blade\Blade;
use Illuminate\Events\Dispatcher;

$views = __DIR__ . '/views';
$cache = __DIR__ . '/cache';

$blade = new Blade($views, $cache, new Dispatcher);
echo $blade->view()->make('hello')->render();

Star History Chart