lrf141/rook

A simple template engine written in PHP

1.0.3 2018-06-05 14:38 UTC

This package is not auto-updated.

Last update: 2024-11-01 22:51:51 UTC


README

Build Status

Rook

A simple template engine written in PHP

How to use

$ composer require lrf141/rook
use Lrf141\Rook\Engine;
$engine = new Engine('path/to/template');
echo $engine.render('template_name', ['data' => 'hello,world']);
<?php
echo $data;
?>
<h1><?= $data ?></h1>
<?