justatheory.com
- Website: justatheory.com/
Recent Actions
-
Commented on A quick static file webserver
From my aliases file: alias pws="plackup -MPlack::App::File -e 'Plack::App::File->new->to_app'" Easy, just Plack. Only downside is that directory requests don’t work....
-
Commented on CPAN is all broken, now
Test::Pod has always failed on warnings, IIRC. There is just a new warning....
Comment Threads
-
BooK commented on
A quick static file webserver
There’s also wallflower, that does it for any Plack application. (Full disclosure: I wrote it.)
When writing a static version of your application, there are a few things to consider, though.
-
BooK commented on
A quick static file webserver
Obviously, I didn’t understand the original post.
-
Enkidu commented on
A quick static file webserver
That’s what I’ve been looking for the last 2 months. Too many web servers on CPAN and too few Neil Bowers to sift through them all. That’s something that I can proudly share with my non-Perl friends.
-
brian d foy commented on
A quick static file webserver
I’d modified Joel’s script to include a default index file by using a before_dispatch hook. It could probably be better, but I stopped when I got it to work.
I needed this for a particular project so I haven’t stopped to make it pretty.
-
brian d foy commented on
A quick static file webserver
The
render_static
was deprecated in the middle of the Mojolicious 5 evolution and is nowreply->static
:#!/usr/bin/env perl use Mojolicious::Lite; use Cwd; app->static->paths->[0] = getcwd; any '/' => sub { shift->reply->static('index.html'); }; app->start;
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.