3 * Template Lite template_fetch_compile_include template internal module
6 * Name: template_fetch_compile_include
9 function template_fetch_compile_include($_templatelite_include_file, $_templatelite_include_vars, &$object)
11 if ($object->debugging
)
13 $object->_templatelite_debug_info
[] = array('type' => 'template',
14 'filename' => $_templatelite_include_file,
15 'depth' => ++
$object->_inclusion_depth
,
16 'exec_time' => array_sum(explode(' ', microtime())) );
17 $included_tpls_idx = count($object->_templatelite_debug_info
) - 1;
20 $object->_vars
= array_merge($object->_vars
, $_templatelite_include_vars);
21 $_templatelite_include_file = $object->_get_resource($_templatelite_include_file);
22 if(isset($object->_confs
[0]))
24 array_unshift($object->_confs
, $object->_confs
[0]);
25 $_compiled_output = $object->_fetch_compile($_templatelite_include_file, true);
26 array_shift($object->_confs
);
30 $_compiled_output = $object->_fetch_compile($_templatelite_include_file, true);
33 $object->_inclusion_depth
--;
35 if ($object->debugging
)
37 $object->_templatelite_debug_info
[$included_tpls_idx]['exec_time'] = array_sum(explode(' ', microtime())) - $object->_templatelite_debug_info
[$included_tpls_idx]['exec_time'];
39 return $_compiled_output;