init
[garradin.git] / include / libs / template_lite / plugins / compiler.debug.php
1 <?php
2
3 /*
4 * Template Lite plugin converted from Smarty
5 * -------------------------------------------------------------
6 * Type: function
7 * Name: debug
8 * Version: 1.0
9 * Date: July 1, 2002
10 * Author: Monte Ohrt <monte@ispi.net>
11 * Purpose: popup debug window
12 * -------------------------------------------------------------
13 */
14 function tpl_compiler_debug($params, &$tpl)
15 {
16 if($params['output'])
17 {
18 $debug_output = '$this->assign("_templatelite_debug_output", ' . $params['output'] . ');';
19 }
20 else
21 {
22 $debug_output = "";
23 }
24
25 if(!function_exists("generate_compiler_debug_output"))
26 {
27 require_once(TEMPLATE_LITE_DIR . "internal/compile.generate_compiler_debug_output.php");
28 }
29 $debug_output .= generate_compiler_debug_output($tpl);
30 return $debug_output;
31 }
32
33 ?>