<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package Mojo;
use Mojo::Base -strict;

# "Professor: These old Doomsday devices are dangerously unstable. I'll rest
#             easier not knowing where they are."
use Mojo::Log;
use Mojo::Transaction::HTTP;
use Mojo::Util 'deprecated';

# DEPRECATED!
sub build_tx {
  deprecated 'Mojo::build_tx is DEPRECATED in favor of Mojolicious::build_tx';
  Mojo::Transaction::HTTP-&gt;new;
}

# DEPRECATED!
sub config {
  deprecated 'Mojo::config is DEPRECATED in favor of Mojolicious::config';
  Mojo::Util::_stash(config =&gt; @_);
}

# DEPRECATED!
sub log {
  deprecated 'Mojo::log is DEPRECATED in favor of Mojolicious::log';
  my $self = shift;
  return $self-&gt;{log} unless @_;
  $self-&gt;{log} = Mojo::Log-&gt;new // shift;
  return $self;
}

# DEPRECATED!
sub handler {
  deprecated 'Mojo::handler is DEPRECATED in favor of Mojolicious::handler';
}

1;

=encoding utf8

=head1 NAME

Mojo - Web development toolkit

=head1 SYNOPSIS

  # HTTP/WebSocket user agent
  use Mojo::UserAgent;
  my $ua = Mojo::UserAgent-&gt;new;
  say $ua-&gt;get('www.mojolicious.org')-&gt;result-&gt;headers-&gt;server;

  # HTML/XML DOM parser with CSS selectors
  use Mojo::DOM;
  my $dom = Mojo::DOM-&gt;new('&lt;div&gt;&lt;b&gt;Hello Mojo!&lt;/b&gt;&lt;/div&gt;');
  say $dom-&gt;at('div &gt; b')-&gt;text;

  # Perl-ish templates
  use Mojo::Template;
  my $mt = Mojo::Template-&gt;new(vars =&gt; 1);
  say $mt-&gt;render('Hello &lt;%= $what %&gt;!', {what =&gt; 'Mojo'});

  # HTTP/WebSocket server
  use Mojo::Server::Daemon;
  my $daemon = Mojo::Server::Daemon-&gt;new(listen =&gt; ['http://*:8080']);
  $daemon-&gt;unsubscribe('request')-&gt;on(request =&gt; sub {
    my ($daemon, $tx) = @_;
    $tx-&gt;res-&gt;code(200);
    $tx-&gt;res-&gt;body('Hello Mojo!');
    $tx-&gt;resume;
  });
  $daemon-&gt;run;

  # Event loop
  use Mojo::IOLoop;
  for my $seconds (1 .. 5) {
    Mojo::IOLoop-&gt;timer($seconds =&gt; sub { say $seconds });
  }
  Mojo::IOLoop-&gt;start;

=head1 DESCRIPTION

A powerful web development toolkit, with all the basic tools and helpers needed
to write simple web applications and higher level web frameworks, such as
L&lt;Mojolicious&gt;. Some of the most commonly used tools are L&lt;Mojo::UserAgent&gt;,
L&lt;Mojo::DOM&gt;, L&lt;Mojo::JSON&gt;, L&lt;Mojo::Server::Daemon&gt;, L&lt;Mojo::Server::Prefork&gt;,
L&lt;Mojo::IOLoop&gt; and L&lt;Mojo::Template&gt;.

See L&lt;Mojolicious::Guides&gt; for more!

=head1 SEE ALSO

L&lt;Mojolicious&gt;, L&lt;Mojolicious::Guides&gt;, L&lt;https://mojolicious.org&gt;.

=cut
</pre></body></html>