DOKK / manpages / debian 12 / libmojolicious-perl / Mojo::HelloWorld.3pm.en
Mojo::HelloWorld(3pm) User Contributed Perl Documentation Mojo::HelloWorld(3pm)

Mojo::HelloWorld - Hello World!

  use Mojo::HelloWorld;
  my $hello = Mojo::HelloWorld->new;
  $hello->start;

Mojo::HelloWorld is the default Mojolicious application, used mostly for testing.

Mojo::HelloWorld inherits all attributes from Mojolicious.

Mojo::HelloWorld inherits all methods from Mojolicious and implements the following new ones.

  $hello->startup;

Creates a catch-all route that renders a text message.

Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.

2022-12-22 perl v5.36.0