Skip to content

Instantly share code, notes, and snippets.

@merrilymeredith
Created July 29, 2015 19:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save merrilymeredith/a050276a3c190a49dc8b to your computer and use it in GitHub Desktop.
package My::Controller::Search {
use Mojo::Base 'Mojolicious::Controller';
sub simple_search {
my ($c) = @_;
# use reads and writes to $c->param(...) to get params set up in the way
# expected by complex_search. Things can be replaced and copied around,
# whatever you want.
return $c->complex_search();
}
sub complex_search {
my ($c) = @_;
# do the complex search stuff supporting the full suite of search options
# enjoy life with all the work in one place.
}
}
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment