ahmachan / heng-phptemplate
Think - the compiling PHP template engine
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2025-01-04 21:08:39 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.
'''
''' ''' <title></title> '''