ahmachan/heng-phptemplate

Think - the compiling PHP template engine

Installs: 25

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

pkg:composer/ahmachan/heng-phptemplate

v1.0.5 2016-07-25 05:37 UTC

This package is not auto-updated.

Last update: 2025-10-12 01:24:07 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
''' ''' <title></title>

'''