2017 © Pedro Peláez
 

project heng-phptemplate

Think - the compiling PHP template engine

image

ahmachan/heng-phptemplate

Think - the compiling PHP template engine

  • Monday, July 25, 2016
  • by ahmachan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHP Template Engine

php template engine base on php 5.4+., (*1)

For a more current PHP 5 implementation of the same ideas, check out phpsavant.com., (*2)

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., (*3)

''', (*4)

foreach($goodslist as $item): ?> endforeach; ?>
Id Name Price IsVIP
=$item['id'];?> =$item['name'];?> =$item['price'];?> =($item['vip'] ? 'VIP' : '');?>

''' ''' , (*5)

=$title;?>

=$title;?>

=$content;?> '''

The Versions

25/07 2016

dev-master

9999999-dev

Think - the compiling PHP template engine

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Avatar ahmachan

template engine

25/07 2016

v1.0.5

1.0.5.0

Think - the compiling PHP template engine

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Avatar ahmachan

template engine

25/07 2016

v1.0.2

1.0.2.0

Think - the compiling PHP template engine

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Avatar ahmachan

template engine

25/07 2016

dev-dev

dev-dev

Think - the compiling PHP template engine

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3

 

by Avatar ahmachan

template engine