Jonathan Mangin wrote:
The docs talk about having display run modes and process run modes.
Does that mean I can split mode2 below into 2 run modes?  And how
would I call mode3 (show_template_2) with vars from process_mode_1?

sub mode1 {
  show_template_1();
}

sub mode2 {
  process_mode1();
  show_template_2();
}

If I understand correctly, I would:

sub mode1 {
  my $self = shift;
  # load and display some template
  return $tmpl->output();
}

sub mode2 {
  my $self = shift;
  # process data from mode1
  # now show it again
  return $self->mode1();
}

sub mode3 {
  my $self = shift;
  # load and display some other template
  return $tmpl->output();
}

Hope you can understand my question,

If that doesn't answer your question, then I guess I didn't understand it :)

--
Michael Peters
Developer
Plus Three, LP


--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to