|
Project Information
Featured
Downloads
Links
|
Oriented Object Template Engine in PHPOOTemplate is a template engine write in PHP5, inspired by the django template. What is it ?This is a template engine for PHP, it is inspired by the django template. OOTemplate's aims is to simplify the generation of html code in PHP, it has been design to be flexible. OOTemplate has a number of backwards-incompatible changes, if you need support, please report an issue. Please report any bugs or inconsistencies you observe. Thank you. News
Development Version
Documentationnote: These pages are drafts, you can check root/doc/ for others informations.
depreacted Main features
Quick Install<?php
ini_set ('include_path',
ini_get ('include_path').':'.dirname (__FILE__).'/ootemplate/lib:');
require 'OOTemplate.php';
$t = new OOTemplate ('<html>Hello {% if who %} {{ who | ucfirst }} {% endif %}</html>');
$t->render ();
// output:
// <html>Hello </html>
$c = $t->getContext ();
$c->who = 'world';
$t->render ();
// output:
// <html>Hello World</html>Other projects in relation |