# An example run-mode method # sub display_page { my ($self) = shift; # Create a HTML::Template blessed reference with the template file, page.html # my ($html) = $self->load_tmpl('page.html'); print STDOUT $html->output; # printing template output directly to STDOUT (*BAD*) return $html->output; # return template output to CGI::Application framework for display (*GOOD*) };