4 # Documentation browser under "/perldoc"
6 plugin 'DefaultHelpers';
8 app->secrets(['A:new.&.S3cure!passw0rd?']);
9 app->sessions->cookie_name('DXSpider');
13 $self->render('index');
18 get '/missing' => sub { shift->render('does_not_exist') };
21 get '/dies' => sub { die 'Intentional error' };
31 Welcome to the Mojolicious real-time web framework!
33 @@ layouts/default.html.ep
37 <meta charset="utf-8">
38 <meta http-equiv="X-UA-Compatible" content="IE=edge">
39 <meta name="viewport" content="width=device-width, initial-scale=1">
40 <title><%= title %></title>
43 <link href="css/bootstrap.min.css" rel="stylesheet">
45 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
46 <!-- WARNING: Respond.js doesnt work if you view the page via file:// -->
48 <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
49 <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
57 <!-- jQuery (necessary for Bootstraps JavaScript plugins) -->
58 <script src="js/jquery-1.11.1.min.js"></script>
59 <!-- Include all compiled plugins (below), or include individual files as needed -->
60 <script src="js/bootstrap.min.js"></script>