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
Name: perl-Mojolicious | |
Version: 3.56 | |
Release: 1%{?dist} | |
Summary: A next generation web framework for Perl | |
License: Artistic 2.0 | |
Group: Development/Libraries | |
URL: http://mojolicious.org/ | |
Source0: http://search.cpan.org/CPAN/modules/by-module/Mojolicous/Mojolicious-%{version}.tar.gz | |
BuildArch: noarch | |
BuildRequires: perl >= 0:5.010, perl(ExtUtils::MakeMaker) |
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
#!/usr/bin/perl | |
use Mojolicious::Lite; | |
get '/' => { message => '' } => 'index'; | |
post '/' => sub { | |
my $self = shift; | |
# getting params | |
my $email = $self->param('email') || ''; |
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
#!/usr/bin/perl | |
use Mojolicious::Lite; | |
get '/' => { message => '' } => 'index'; | |
post '/' => sub { | |
my $self = shift; | |
# getting params | |
my $email = $self->param('email') || ''; |
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
#!/usr/bin/env perl | |
use DateTime; | |
use Mojolicious::Lite; | |
get '/' => 'index'; | |
get '/service/datetime' => sub { | |
my $self = shift; | |
my $dt = DateTime->now; |
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
#!/usr/bin/env perl | |
use DateTime; | |
use Mojolicious::Lite; | |
get '/' => 'index'; | |
get '/service/datetime' => sub { | |
my $self = shift; | |
my $dt = DateTime->now; |
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
use Mojolicious::Lite; | |
use EV; | |
use IO::Async::Process; | |
use IO::Async::Loop::EV; | |
my $loop = IO::Async::Loop::EV->new; | |
get '/' => sub { | |
my $self = shift; |
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
use Mojolicious::Lite; | |
use EV; | |
use IO::Async::Process; | |
use IO::Async::Loop::EV; | |
my $loop = IO::Async::Loop::EV->new; | |
get '/' => sub { | |
my $self = shift; |
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
use Mojolicious::Lite; | |
use EV; | |
use IO::Async::Process; | |
use IO::Async::Loop::EV; | |
my $loop = IO::Async::Loop::EV->new; | |
get '/' => sub { | |
my $self = shift; |
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 WWW::FGen; | |
use WWW::Mechanize; | |
# constructor | |
sub new { | |
my $class = shift; | |
return bless { | |
_mechanize => WWW::Mechanize->new( agent => 'Perl of Love' ), | |
_url => 'http://mendel.cs.rhul.ac.uk/mendel.php?topic=fgen-file', |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Test::More tests => 6; | |
use Test::Mojo; | |
my $url = 'http://localhost/~rhaen/index.html'; | |
my $t = Test::Mojo->new; |