I decided to spend this week getting Druid online. It's been a while since I spent tuits on Druid, but getting it into a web app has been a goal for a long time.
infix:</>that needed to be
Web::Responseto produce the actual web application. This is working fairly well nowadays. Separate from this is a small wrapper script which connects the web app to a
Web::Handler, an adapter to a specific webserver backend. In this case, we're using the handler
Web::Handler::HTTPDaemon,which connects to mberends++'
http-daemon. It's quite satisfying to see all that infrastructure in place to support creating a web app in a simple way.
Web::Handler::HTTPDaemon: jnthn++ had recently fixed the bug where Rakudo thinks that
Callable &foomeans that foo is
Callable, rather than a
Callable[Callable]for short). So I fixed that.
cd druid; bin/web-druid— but for that to work, you'll need Druid, Web.pm and http-daemon, all available through proto. It's a good idea to precompile all three of them for speed reasons. When you run
bin/web-druid, it'll tell you which URL to go to in order to play the game.
I wish to thank The Perl Foundation for sponsoring the Web.pm effort.