On Mon, Apr 3, 2017 at 12:20 PM, ivo welch <[email protected]>
wrote:

> Can't load application from file "myapp.pl": Plugin "Mojolyst" missing,
> maybe you need to install it?
>
> it's not in the cpan list, either.  this would be a nice plugin to
> distribute.
>

You'll need to use an updated Mojolyst.pm plugin
<https://gist.github.com/kraih/2149176#gistcomment-2045769>.

Also, this is your file tree:


$ find -type f
./myapp.pl
./lib/MyApp/Controller/Foo.pm
./lib/MyApp/Controller/Bar.pm
./lib/Mojolicious/Plugin/Mojolyst.pm


Put the contents of Sebastian's blog post into the files respectively, and
execute:

$ perl myapp.pl get /test
[Mon Apr  3 23:42:06 2017] [debug] GET "/test"
[Mon Apr  3 23:42:06 2017] [debug] Routing to a callback
[Mon Apr  3 23:42:06 2017] [debug] Rendering template "test.html.ep" from
DATA section
[Mon Apr  3 23:42:06 2017] [debug] 200 OK (0.000907s, 1102.536/s)
Just some test template.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to