Created
February 16, 2011 23:14
-
-
Save ingydotnet/830512 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Googler; | |
use 5.008003; | |
use Mouse; | |
extends 'Cog::App'; | |
our $VERSION = '0.01'; | |
use constant webapp_class => 'Googler::WebApp'; | |
package Googler::WebApp; | |
use Mouse; | |
extends 'Cog::WebApp'; | |
use constant site_navigation => [ | |
'()', | |
['Gugod' => '/gugod'], | |
['Ingy' => '/ingy'], | |
]; | |
use constant url_map => [ | |
'()', | |
['/(.*)' => 'search', ('$1')], | |
]; | |
use constant js_files => [ | |
'googler.js', | |
]; | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment