Is 'sub' missing in get '/' => {text => 'Hello World'};?
edit: Never mind that, it is actually ok. Got confused there for a moment looking at a different example:
use Mojolicious::Lite; get '/' => sub { my $c = shift; $c->render(text => "OHAI!"); }; app->start;
From this topic that talks about PSGI: here
In reply to Re^2: Using Mojolicious with NGINX Unit
by Veltro
in thread Using Mojolicious with NGINX Unit
by tbusch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |