ninejkh / tpl
A simple template engine
0.3.0
2018-11-10 14:46 UTC
Requires
- php: >=5.5.0
- mobiledetect/mobiledetectlib: ^2.8
Requires (Dev)
- satooshi/php-coveralls: ^1.0
Suggests
- wyrihaximus/html-compress: If installed, will automatically compress html output.
This package is not auto-updated.
Last update: 2024-11-20 16:53:56 UTC
README
ninejkh/tpl
A really really simple template engine, if you think PHP is good enough at doing exactly that. No compiled or cached state, pure PHP.
Install
$ composer require ninejkh/tpl
Usage
<?php require 'vendor/autoload.php'; use NINEJKH\Tpl\Tpl; $tpl = new Tpl('tpl/'); $tpl->assign('foo', 'bar'); $tpl->display('home');
License
Licensed under the MIT License. See the LICENSE file for details.