in reply to Re: Re: Re: Re: Re: Best method for dynamic page generation?
in thread Best method for dynamic page generation?


Oh, BRILLIANCE.

Does it allow you to take query parameters to match your subroutines?

"and I wonder, when I sing along with you if everything could ever feel this real forever? if anything could ever be this good again? the only thing I'll ever ask of you, you've gotta promise not to stop when I say 'when'", she sang
  • Comment on Re: Re: Re: Re: Re: Re: Best method for dynamic page generation?

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: Best method for dynamic page generation?
by geektron (Curate) on Jan 04, 2004 at 22:47 UTC
    here's part of a setup method ( i'm working on the project right now ) :
    sub setup { my $self = shift; $self->{TEMPLATEDIR} = "/home/templates"; $self->start_mode('edit_setup'); $self->mode_param('rm'); $self->run_modes( 'setup' => \&setup_list, 'edit_setup' => \&setup_edit, 'view_listing' => \&view_listing, }
    the start_mode determines what the first value of your run_mode will be.

    subs are then executed by URLs like:  index.cgi?rm=view_listing

    now go read the  perldoc on it. ;-)


      That's absolutely awesome, I've always wanted something that would do that for me. I'll go read up on it asap.
      dhoss
      "and I wonder, when I sing along with you if everything could ever feel this real forever? if anything could ever be this good again? the only thing I'll ever ask of you, you've gotta promise not to stop when I say 'when'", she sang