50onred/laravel-blade

Use the simple and yet powerful Laravel Blade templating engine as a standalone component.
401 4
Install
composer require 50onred/laravel-blade
Latest Version:1.3
License:MIT
Last Updated:May 28, 2014
Links: GitHub  ·  Packagist
Maintainer: sblawrie

Installation

The package can be installed via Composer by requiring the "50onred/laravel-blade": "1.3" package in your project's composer.json.

[
	"require": {
	    "50onred/laravel-blade": "1.3"
	}
]

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 FiftyOnRed\Blade\Blade;

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

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

You can use all blade features as described in the Laravel 4 documentation: http://laravel.com/docs/templates#blade-templating

Related Packages

philo/laravel-blade

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

685,353 354
fitztrev/laravel-html-minify

Minifies the HTML output of Laravel 4 applications

215,888 413
igaster/laravel-theme

Laravel Themes: Asset & Views folder per theme. Theme inheritance. Blade integra...

1,268,831 515
spatie/laravel-blade-javascript

A Blade directive to export variables to JavaScript

946,499 620
riverskies/laravel-mobile-detect

Instant mobile detection access directly from within Blade templates.

1,561,328 231