function output ( $_top = '' )
		{
			global $_top;

			//	Make sure that folder names have a trailing '/'
			if (strlen($this->template_dir)  &&  substr($this->template_dir, -1) != '/')
			{
				$this->template_dir  .=  '/';
			}
			if (strlen($this->temp_dir)  &&  substr($this->temp_dir, -1) != '/')
			{
				$this->temp_dir  .=  '/';
			}
			//	Prepare Template Content
			if (!is_array($_top))
			{
				if (strlen($_top))
				{
					$this->tpl_file  =  $_top;
				}
				$_top  =  $this->data;
			}
			$_obj  =  &$_top;
			$_stack_cnt  =  0;
			$_stack[$_stack_cnt++]  =  $_obj;

			//	Check if template is already compiled
			$cpl_file_name = preg_replace('/[:\/.\\\\]/', '_', $this->tpl_file);
			if (strlen($cpl_file_name) > 0)
			{
	    		$this->cpl_file  =  $this->temp_dir . $cpl_file_name . '.php';
				$compile_template  =  true;
				if ($this->reuse_code)
				{
					if (is_file($this->cpl_file))
					{
						if ($this->mtime($this->cpl_file) > $this->mtime($this->template_dir . $this->tpl_file))
						{
							$compile_template  =  false;
						}
					}
				}
				if ($compile_template)
				{
					if (@include_once("class.smarttemplateparser.php"))
					{
						$this->parser = new SmartTemplateParser($this->template_dir . $this->tpl_file);
						if (!$this->parser->compile($this->cpl_file))
						{
							exit( "SmartTemplate Parser Error: " . $this->parser->error );
						}
					}
					else
					{
						exit( "SmartTemplate Error: Cannot find class.smarttemplateparser.php; check SmartTemplate installation");
					}
				}
				//	Execute Compiled Template
				include($this->cpl_file);
			}
			else
			{
				exit( "SmartTemplate Error: You must set a template file name");
			}
			//	Delete Global Content Array in order to allow multiple use of SmartTemplate class in one script
			unset ($_top);
		}
function output ( $_top = '' )
		{
			global $_top;

			//	Make sure that folder names have a trailing '/'
			if (strlen($this->template_dir)  &&  substr($this->template_dir, -1) != '/')
			{
				$this->template_dir  .=  '/';
			}
			if (strlen($this->temp_dir)  &&  substr($this->temp_dir, -1) != '/')
			{
				$this->temp_dir  .=  '/';
			}
			//	Prepare Template Content
			if (!is_array($_top))
			{
				if (strlen($_top))
				{
					$this->tpl_file  =  $_top;
				}
				$_top  =  $this->data;
			}
			$_obj  =  &$_top;
			$_stack_cnt  =  0;
			$_stack[$_stack_cnt++]  =  $_obj;

			//	Check if template is already compiled
			$cpl_file_name = preg_replace('/[:\/.\\\\]/', '_', $this->tpl_file);
			if (strlen($cpl_file_name) > 0)
			{
	    		$this->cpl_file  =  $this->temp_dir . $cpl_file_name . '.php';
				$compile_template  =  true;
				if ($this->reuse_code)
				{
					if (is_file($this->cpl_file))
					{
						if ($this->mtime($this->cpl_file) > $this->mtime($this->template_dir . $this->tpl_file))
						{
							$compile_template  =  false;
						}
					}
				}
				if ($compile_template)
				{
					if (@include_once("class.smarttemplateparser.php"))
					{
						$this->parser = new SmartTemplateParser($this->template_dir . $this->tpl_file);
						if (!$this->parser->compile($this->cpl_file))
						{
							exit( "SmartTemplate Parser Error: " . $this->parser->error );
						}
					}
					else
					{
						exit( "SmartTemplate Error: Cannot find class.smarttemplateparser.php; check SmartTemplate installation");
					}
				}
				//	Execute Compiled Template
				include($this->cpl_file);
			}
			else
			{
				exit( "SmartTemplate Error: You must set a template file name");
			}
			//	Delete Global Content Array in order to allow multiple use of SmartTemplate class in one script
			unset ($_top);
		}
function output ( $ _top = '' ) { global $ _top ; //	Make sure that folder names have a trailing '/' if ( strlen ( $ this -> template_dir ) && substr ( $ this -> template_dir , - 1 ) != '/' ) { $ this -> template_dir .= '/' ; } if ( strlen ( $ this -> temp_dir ) && substr ( $ this -> temp_dir , - 1 ) != '/' ) { $ this -> temp_dir .= '/' ; } //	Prepare Template Content if ( ! is_array ( $ _top ) ) { if ( strlen ( $ _top ) ) { $ this -> tpl_file = $ _top ; } $ _top = $ this -> data ; } $ _obj = & $ _top ; $ _stack_cnt = 0 ; $ _stack [ $ _stack_cnt ++ ] = $ _obj ; //	Check if template is already compiled $ cpl_file_name = preg_replace ( '/[:\/.\\\\]/' , '_' , $ this -> tpl_file ) ; if ( strlen ( $ cpl_file_name ) > 0 ) { $ this -> cpl_file = $ this -> temp_dir . $ cpl_file_name . '.php' ; $ compile_template = true ; if ( $ this -> reuse_code ) { if ( is_file ( $ this -> cpl_file ) ) { if ( $ this -> mtime ( $ this -> cpl_file ) > $ this -> mtime ( $ this -> template_dir . $ this -> tpl_file ) ) { $ compile_template = false ; } } } if ( $ compile_template ) { if ( @ include_once ( "class.smarttemplateparser.php" ) ) { $ this -> parser = new SmartTemplateParser ( $ this -> template_dir . $ this -> tpl_file ) ; if ( ! $ this -> parser -> compile ( $ this -> cpl_file ) ) { exit ( "SmartTemplate Parser Error: " . $ this -> parser -> error ) ; } } else { exit ( "SmartTemplate Error: Cannot find class.smarttemplateparser.php; check SmartTemplate installation" ) ; } } //	Execute Compiled Template include ( $ this -> cpl_file ) ; } else { exit ( "SmartTemplate Error: You must set a template file name" ) ; } //	Delete Global Content Array in order to allow multiple use of SmartTemplate class in one script unset ( $ _top ) ; }
Execute parsed Template
Prints Parsing Results to Standard Output

@access public
@param array $_top Content Array
@desc Execute parsed Template
Execute parsed Template Prints Parsing Results to Standard Output