Help for this page

Select Code to Download


  1. or download this
        catalyst.pl Greet;
        cd Greet
        scripts/greet_create.pl view TT TT
        scripts/greet_create.pl controller Greeting
        echo "[% greeting %]" > root/greeting.tt
    
  2. or download this
        sub default : Private {
            my ( $self, $c ) = @_;
    ...
            $c->stash->{template} = q{greeting.tt};
            $c->forward('Greet::V::TT');
        }
    
  3. or download this
        1. scripts/greet_test.pl / 
           -> Congratulations, Greet is on Catalyst!
    ...
           -> greeting, hello, world
        4. scripts/greet_test.pl /hi/there/greeting/say/hello/world
           -> hi, there, greeting, say, hello, world