Hi All,
So, after reading today's p6 advent calendar entry, I gave
this a try:
$ cat mojo.p6
#!/usr/bin/env perl6
use Mojolicious::Lite:from<Perl5>;
app.routes.get: '/', -> $c { $c.render( :text("hello\n") ) };
app.start;
and it works!
$ ./mojo.p6 get /
[Tue Dec 20 15:49:43 2016] [debug] GET "/"
[Tue Dec 20 15:49:43 2016] [debug] Routing to a callback
[Tue Dec 20 15:49:43 2016] [debug] 200 OK (0.001791s, 558.347/s)
hello
$ ./mojo.p6 daemon
[Tue Dec 20 15:52:22 2016] [info] Listening at "http://*:3000"
Server available at http://127.0.0.1:3000
Hurray!
Brian
--
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.