PHP code example of lrf141 / rook
1. Go to this page and download the library: Download lrf141/rook 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/ */
lrf141 / rook example snippets
use Lrf141\Rook\Engine;
$engine = new Engine('path/to/template');
echo $engine.render('template_name', ['data' => 'hello,world']);
:template_name.php
echo $data;