2017 © Pedro Peláez
 

library view

Template system

image

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

The README.md

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

The Versions

14/03 2015

dev-master

9999999-dev

Template system

  Sources   Download

The Requires

  • php >=5.3.0

 

by Avatar AntonioCS