ahmachan / heng-phptemplate
Think - the compiling PHP template engine
Package info
github.com/ahmachan/heng-phptemplate
Type:project
pkg:composer/ahmachan/heng-phptemplate
v1.0.5
2016-07-25 05:37 UTC
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2026-03-15 03:39:28 UTC
README
php template engine base on php 5.4+.
For a more current PHP 5 implementation of the same ideas, check out phpsavant.com.
Example '''
set('title', 'Goods List'); $body = new Template($path); $body->set('goods', fetch_goodslist()); $tpl->set('content', $body->fetch('goodslist.tpl')); echo $tpl->fetch('index.tpl'); ?>''' And it can be used with the following templates.
'''
| Id | Name | Price | IsVIP |
|---|---|---|---|