/[simile]/wm/bin/mojolicious
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /wm/bin/mojolicious

Parent Directory Parent Directory | Revision Log Revision Log


Revision 40 - (hide annotations)
Sun Oct 26 14:20:45 2008 UTC (15 years, 5 months ago) by dpavlin
File size: 553 byte(s)
simple example using Mojo to produce Exhibit interface to df
1 dpavlin 40 #!/usr/bin/perl
2    
3     # Copyright (C) 2008, Sebastian Riedel.
4    
5     use strict;
6     use warnings;
7    
8     use FindBin;
9    
10     use lib "$FindBin::Bin/lib";
11     use lib "$FindBin::Bin/../lib";
12     use lib "$FindBin::Bin/../../lib";
13    
14     $ENV{MOJO_APP} = 'WM';
15    
16     # Check if Mojo is installed
17     eval 'use Mojolicious::Scripts';
18     if ($@) {
19     print <<EOF;
20     It looks like you don't have the Mojo Framework installed.
21     Please visit http://getmojo.kraih.com for detailed installation instructions.
22    
23     EOF
24     exit;
25     }
26    
27     # Start the script system
28     my $scripts = Mojolicious::Scripts->new;
29     $scripts->run(@ARGV);

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26