justcode.ikeepstudying.com
PHP模板引擎函数, PHP最简单的模板引擎, PHP the easiest template engines, Top 7: Best Open Source PHP Template Engines - Just Code
最简单模板引擎, 只要一个函数就可以完成: function iks_template_engine($template = '', $data = array()) { if($template AND $data) { $stack = array(); /* $template = str_replace('', $template); $template = preg_replace('~\{\{(\w+)\}\}~', '', $template); $template = preg_replace('~\{\{LOOP:(\w+)\}\}~', '