An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/lrf141/rook.svg?branch=master)](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 ?>

```