template engine rework

- use smarty3 as default engine
- new pluggable template engine system
This commit is contained in:
Fabrixxm 2013-03-27 10:37:59 -04:00
parent a34b1ceb3a
commit ddf1caf0fd
5 changed files with 136 additions and 34 deletions

11
object/TemplateEngine.php Normal file
View file

@ -0,0 +1,11 @@
<?php
require_once 'boot.php';
/**
* Interface for template engines
*/
interface ITemplateEngine {
public function replace_macros($s,$v);
public function get_template_file($file, $root='');
}