Mojolic...ite_app(3)
π NAME π
Okay so bestie, gather round β this is Mojolicious::Command::Author::generate::lite_app, aka the Lite app generator command. That's it, that's the whole thing: it makes little apps for you. Iconic behavior fr fr. β¨
πΈ SYNOPSIS πΈ
Here's the vibe check on how you actually call it:
Usage: APPLICATION generate lite-app [OPTIONS] [NAME]
mojo generate lite-app
mojo generate lite-app foo.pl
Options:
-h, --help Show this summary of available options
So literally you can just run it with no name at all, or hand it a filename like foo.pl and it will do the thing. Slay. π
π¦ DESCRIPTION π¦
Mojolicious::Command::Author::generate::lite_app generates fully functional Mojolicious::Lite applications. Fully functional!! Not a stub, not a "figure it out yourself" situation β it's giving whole entire app. π
This is a core command, which means like⦠two things, bestie:
- it is always enabled β
- its code is a good example for learning to build new commands, and you're welcome to fork it π
Also worth knowing: check out "COMMANDS" in Mojolicious::Commands for the list of commands that are available by default. iykyk. π
π ATTRIBUTES π
So Mojolicious::Command::Author::generate::lite_app inherits all attributes from Mojolicious::Command and implements the following new ones. Let's go through 'em π«Ά
β¨ description
my $description = $app->description;
$app = $app->description('Foo');
Short description of this command, used for the command list. Basically it's the little blurb that shows up when you're scrolling the list of commands β the ~intro text~ if you will. Not me being obsessed with a one-liner description π
β¨ usage
my $usage = $app->usage;
$app = $app->usage('Foo');
Usage information for this command, used for the help screen. So when someone asks for help, this is what shows up. The help screen is literally built from this. π§
π₯ METHODS π₯
Mojolicious::Command::Author::generate::lite_app inherits all methods from Mojolicious::Command and implements the following new one. Just the one, and honestly? She doesn't need more. Main character energy. π
β run
$app->run(@ARGV);
Run this command. That's the whole paragraph, no cap β you call it, it runs, it does the lite-app generating. π
πΈ SEE ALSO πΈ
MojoliciousMojolicious::Guides- <https://mojolicious.org>
π real talk though: this is the perl v5.42.0 build, dated 2026-07-15, so likeβ¦ that's the version and date you're reading. Don't come for me, that's just what the footer said. π«Ά
okay that's the whole page bestie, go generate a lite app and slay β¨π¦π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Mojolicious 9.480.0-bp160.2.1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms