Habari\HiEngine::display PHP Method

display() public method

A function which outputs the result of a transposed template to the output stream
public display ( $template )
    public function display($template)
    {
        extract($this->engine_vars);
        if ($this->template_exists($template)) {
            $template_file = isset($this->template_map[$template]) ? $this->template_map[$template] : null;
            $template_file = Plugins::filter('include_template_file', $template_file, $template, __CLASS__);
            $template_file = 'hi://' . $template_file;
            $fc = file_get_contents($template_file);
            //echo($fc);
            eval('namespace Habari; ?' . '>' . $fc);
            //include $template_file;  // stopped working properly in PHP 5.2.8
        }
    }