talk/blade-engine

Use Laravel Blade templates engine without the full Laravel framework.

0.0.1 2020-07-24 07:52 UTC

This package is auto-updated.

Last update: 2024-04-24 16:28:48 UTC


README

Use Laravel Blade templates engine without the full Laravel framework.

声明

感谢 duncan3dc/blade
因项目需求新增功能,故而新建仓库。

Quick Examples

Output the view from /var/www/views/index.blade.php:

use Talk\BladeInstance;

$blade = new BladeInstance("/var/www/views", "/var/www/cache/views");

echo $blade->render("index");

There is also a static class available:

use duncan3dc\Laravel\Blade;

echo Blade::render("index");