diff --git a/lib/templating/smartytemplate.inc.php b/lib/templating/smartytemplate.inc.php new file mode 100644 index 0000000..3422dea --- /dev/null +++ b/lib/templating/smartytemplate.inc.php @@ -0,0 +1,45 @@ +KTTemplate($sPath); + } + + function render($aDict) { + $smarty = new Smarty; + $smarty->compile_dir = "/tmp"; + foreach ($aDict as $k => $v) { + $smarty->assign($k, $v); + } + return $smarty->fetch($this->sPath); + } +} + +?>