Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Baraka::Controller::Find;
- use strict;
- use warnings;
- use parent 'Catalyst::Controller';
- # match /find
- sub base :Chained('/') :PathPart('find') :CaptureArgs(0) {
- my $self = shift;
- my ($c, @args) = @_;
- $c->log->debug('where the chain?');
- $c->stash->{buildings} = $c->model('DB::Building');
- }
- # match /find (end of chain)
- sub index :Chained('base') :PathPart('') :Args(0) {
- my $self = shift;
- my ($c, @args) = @_;
- $c->stash(
- template => 'find/index.html'
- );
- }
- 1;
Add Comment
Please, Sign In to add comment