library view
Template system
antoniocs/view
Template system
- Saturday, March 14, 2015
- by AntonioCS
- Repository
- 1 Watchers
- 1 Stars
- 8 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
View template system
A simple template system which supports:, (*1)
- set/get for setting variables
- allows '$this' keyword in the template
- setting the template path globally or by class instance
- setting the extension of the templates globally or by class instance
- blocks (with priority)
- inheritance
Quick example of usage:, (*2)
acs_view::$PATH = 'templates/';
$v = new view();
$v->load('index');
$v->title = 'hello';
echo $v->render();
Todo:, (*3)
- Call subviews
- Create documentation
- More unit tests
- Create examples page
- Make PSR-0 Standard compliant
dev-master
9999999-dev
Template system
Sources
Download
The Requires
by
AntonioCS