[Wed Apr 01 09:28:54 2009] [crit] (22)Invalid argument: Parent: Failed to create the child process. [Wed Apr 01 09:28:54 2009] [crit] (OS 6)The handle is invalid. : master_main: create child process failed. Exiting. [Wed Apr 01 09:28:54 2009] [notice] Parent: Forcing termination of child process 2670888 #### sub Render { my $proto = shift; my ($params, $data, $template, $base_template_dir) = @_; my $engine = HTML::Template::Expr->new(filter => \&ht_tt2_filter, filename => $base_template_dir.'/'.$template, die_on_bad_params=>0, encoding => ':utf8'); $engine->param($params); $engine->param($data); print $engine->output; } #### sub Render { my $proto = shift; my ($params, $data, $template, $base_template_dir) = @_; my $tt = Template->new({INCLUDE_PATH => $base_template_dir, INTERPOLATE => 1}) || croak("$Template::ERROR\n"); $tt->process($template, { params => $params, data => $data } ); } #### $TEMPLATE_ENGINE->Render(@_, $TEMPLATE_DIR);