public function parse($data, $template_code, $templates_root_dir = FALSE, $profiling = FALSE) { // функция-обёртка для быстрого вызова класса // принимает шаблон непосредственно в виде кода $W = new Templater($data, $templates_root_dir, $profiling); $string = $W->parse_template($template_code); return $string; }