PHP code example of tempest / blade
1. Go to this page and download the library: Download tempest/blade library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tempest / blade example snippets
use Tempest\Blade\Blade;
$blade = new Blade('views', 'cache');
echo $blade->make('homepage', ['name' => 'John Doe'])->render();
echo $blade->render('homepage', ['name' => 'John Doe']);
$blade->directive('datetime', function ($expression) {
return " echo with({$expression})->format('F d, Y g:i a');