devinow/template

Devinow Framework Template Engine Library,Use the simple and yet powerful Laravel Blade templating engine as a standalone component.

3.0.0 2023-08-03 16:17 UTC

This package is auto-updated.

Last update: 2023-11-03 16:47:42 UTC


README

composer require devinow/template

Usage

<?php

require __DIR__.'/vendor/autoload.php';

use Devinow\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 documentation: https://laravel.com/docs/master/blade