https://github.com/lrf141/rook
A simple template engine written in PHP
https://github.com/lrf141/rook
simple-template-engine template template-engine
Last synced: about 1 year ago
JSON representation
A simple template engine written in PHP
- Host: GitHub
- URL: https://github.com/lrf141/rook
- Owner: lrf141
- License: mit
- Created: 2018-05-10T00:50:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-05T14:40:41.000Z (about 8 years ago)
- Last Synced: 2025-03-03T05:42:17.530Z (over 1 year ago)
- Topics: simple-template-engine, template, template-engine
- Language: PHP
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/lrf141/rook)
# Rook
A simple template engine written in PHP
# How to use
```
$ composer require lrf141/rook
```
```php
use Lrf141\Rook\Engine;
$engine = new Engine('path/to/template');
echo $engine.render('template_name', ['data' => 'hello,world']);
```
```php:template_name.php
= $data ?>
```